openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Re: Extract date from Timestamp column in OpenJPA
Date Wed, 12 Mar 2008 23:30:23 GMT
Hi Ravi,

You should be able to map the column to a java.util.Date field. Then,  
use a transient java.util.Calendar to manipulate the date object.

Best,

Craig

On Mar 12, 2008, at 3:35 PM, Ravic wrote:

>
> Hi,
> Can anyone let me know how to extract date part from Timestamp in  
> OpenJPA
> against Oracle 10g?
> I was wondering if there is any function like trunc and to_date in  
> OpenJPA.
>
> Regards,
> Ravi
>
> -- 
> View this message in context: http://www.nabble.com/Extract-date-from-Timestamp-column-in-OpenJPA-tp16015057p16015057.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message