Greetings! I am relatively new to java, and very new to hibernate, so hopefully this question will be easy to understand and provide a little help on.
I have set up a table which contains a date field as part of a primary key. According to other documentation that I have read, this is the correct syntax:
@Temporal(TemporalType.DATE) private Calendar TransactionDate;
I use Calendar or GregorianCalendar everywhere to initialize the data for this column, but in every instance and in looking at the column properties, I see that the data stored there is of type TIMESTAMP. The code I'm using to set the data is either: Calendar today = Calendar.getInstance(); or: Calendar today = new GregorianCalendar();
I really, really only want to see a date in that column. Can someone point out what I might be doing wro
|