Hello Mark,

Yes, Orion should allow what you are doing and we have now fixed that, however the
fix is not yet up for download. It will be shortly and I will notify you when it is
(I will not notify the whole list though)

Regards,
Karl Avedal

Mark Causer wrote:

> 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