The following link shows you can place @Temporal annotation on a java.sql.Timestamp
http://www.oracle.com/technology/products/ias/toplink/jpa/resources/toplink-jpa-annotations.html#Temporal
But the following code generates error on deployment in Glassfish v2:
@Column(name = "createDateTime", nullable = false)
@Temporal(value = TemporalType.TIMESTAMP)
private java.sql.Timestamp createdDateTime;
The error message:
"Exception Description: The type [class java.sql.Timestamp] for the attribute [createdDateTime] on the entity class [class brazos.permit.ejb.domain.User] is not a valid type for a temporal mapping. The attribute must be defined as java.util.Date or java.util.Calendar."
Can someone confirm if this is a bug or if I'm overlooking something?
Thanks
-sud
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com