devxlogo

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

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;

devx-admin

Share the Post: