Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Java
Expertise: Advanced
May 18, 2009

How to Declare a java.util.Date in a EJB 3.0 Entity

To map a date column value to a Java date in EJB 3.0, use this code:

@Temporal(TemporalType.TIMESTAMP)
private java.util.Date publishDate;
Leonard Anghel
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap