"loubyansky" wrote : Any more details on what you and JBoss [your version] did?

I do experience the issue accessing DB2 DATE field via CMP EB.

Jboss 3.2.3.

It seems Jboss CMP module makes the difference between the value retrived from the DB 
and the value stored in the CMP field. 

Why? Do you think something wrong with standardjbosscmp-jdbc.xml datatype mapping?

Code:
  Fake f = FakeHome.findByPrimaryKey(new Long(XXX));
  f.getDate(); // note the Date should be not null to reproduce the issue

Date field:
  public abstract java.sql.Date getDate();

Log:

2004-03-17 12:37:07,578 DEBUG 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.FakeCMP#findByPrimaryKey] 
Executing SQL: SELECT FAKE_ID FROM FAKE WHERE FAKE_ID=?
2004-03-17 12:37:07,578 DEBUG 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.FakeCMP] Executing SQL: SELECT 
DATE FROM FAKE WHERE (FAKE_ID=?)
2004-03-17 12:37:07,593 DEBUG 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreEntityCommand.FakeCMP] Executing SQL: UPDATE 
FAKE SET DATE=? WHERE FAKE_ID=?
2004-03-17 12:37:07,593 DEBUG 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreEntityCommand.FakeCMP] Rows affected = 1




<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826121#3826121";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826121>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to