Hi,

how do you map Oracle DATE fields to java.sql.Timestamp with Orion ?

I have       schema="./database-schemas/oracle.xml"      
added to data-sources.xml

I have   <type-mapping type="java.sql.Timestamp" name="DATE" />
added to oracle.xml

I have   <cmp-field-mapping name="deptLastModified"
persistence-name="DEPT_LAST_MODIFIED" persistence-type="DATE" />
added to orion-ejb-jar.xml 

but I am still getting :

EntityBeanWrapper4.java:2636: Incompatible type for declaration. Explicit cast
needed to convert java.util.Date to java.sql.Timestamp.
                java.sql.Timestamp _deptLastModified = object.deptLastModified =
= null ? null : new java.util.Date(object.deptLastModified.getTime());

when I start Orion.

Help anyone ?

Mark


Reply via email to