0 Replies Latest reply on Apr 7, 2003 1:32 PM by mboulatian

    Date vs Timestamp

    mboulatian

      In jboss 2.4.4 in order to make mapping of oracle date field to work I was declaring the field in an entity bean as of java.sql.Timestamp type. In get / set methods I was doing the conversion to return proper java.util.Date type like this: "return (java.util.Date) dateVar" in getDateVar() and "dateVar = new java.sql.Timestamp(dateVar1.getTime())" in setDateVar(java.util.Date dateVar1). I am trying to use cmp 2.0 with jboss 3.04. I was wondering if the date mapping is taken care of automatically or do I have to do something like the above to make it working?