3 Replies Latest reply on Jan 29, 2003 3:15 PM by Rafael Ubiratam Clemente Afonso

    Oracle and java.sql.Date

    Rafael Ubiratam Clemente Afonso Newbie


      I am using JBoss 3.0.4 with Oracle 9i. In Oracle I have a table with a column DATE. I created a CMP entity from this table (I lie, it was JBuilder that created). My DATE column generated a java.sql.Date attribute. When I create a new bean, I insert a Date object (like 2002-01-28 17:26:30, for example). When I get this created bean, Date attribute has day but not hour (like 2002-01-28 0:00:00.0). In database is the same thing. Can anyone explain this? How do I correct this?


      Rafael U. C. Afonso