Using entity column named 'date' - reserved SQL-99 keyword
843830May 24 2008 — edited May 24 2008Hello!
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!