I would go with java.util.Date or java.util.Calendar.
'Two primary keys' doesn't exactly make sense. Do you mean a composite key... aka... two columns, when put together, represent the uniqueness of the row? Assuming that's what you're looking for, look at Chapter 10 of this:
http://downside.ch/hibernate/hibernatetutorial-1.4.pdf html if you prefer: http://tinyurl.com/y849oa Fan wrote:
If I want to make a Date type property in POJO, should I use java.sql.Date or java.util.Date ? What if I want to have two primary keys in a table, i.e. ID & transaction date, what's the @hibernate.* tags should I use ?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
