Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using entity column named 'date' - reserved SQL-99 keyword

843830May 24 2008 — edited May 24 2008
Hello!

In my PostgreSQL 8.3 database, I have a 'timestamp without time zone' column named 'date'. In the entity that maps the table I have a @Temporal(TemporalType.TIMESTAMP) Date date. NetBeans shows a warning saying that ''The attribute column name (date) is a reserved SQL-99 keyword".
The problem is, when showing this date in a JSF page, instead of the date 2008-05-24 18:41:53.54 it shows Aug 10 00:00:53 EEST 3909. Betwean the entity and the JSF I also have a web service, that maps the java.util.Date to an XMLGregorianCalendar. Could it be because of the warning shown by NetBeans?

Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 21 2008
Added on May 24 2008
2 comments
700 views