0 Replies Latest reply on Aug 6, 2002 11:13 AM by fernandez

    Default Database.

    fernandez Newbie

      Hi, I try to deploy an entityBeanusing a compound key. This key is composed by two String, when I create an entity with the String "1", it's running fine, but when I try with "A1", I've got an error.

      16:20:13,765 ERROR [STDERR] javax.ejb.CreateException: Could not create entity:j
      ava.sql.SQLException: General error java.lang.NumberFormatException: A1 in state
      ment [INSERT INTO Tracking (id) VALUES ('A1')]

      Do I need to configure a descriptor as jboss-jdbc.xml ? Or do you think the error can be come from the method hashCode() that I defined ? Thanks.