2 Replies Latest reply on Dec 27, 2002 3:00 AM by Eli Krakovsky

    1:1 CMR & Jboss CMP - strange problem

    Eli Krakovsky Newbie

      Hi all!

      I have a strange problem using 1:1 CMR with CMP EJB. When I create an entity bean with given cmr field content - it's ok, no problem has arised and all content in the database . But if I want to create another bean with different primary key but with the same cmr field value - it also creates without any problem, but in the database the record that corresponds to previously created bean updates with NULL value on the column that corresponds to the cmr field, and then the new record is created.
      No unique settings for the DB table, foreign keys are created.
      JBoss 3.0.4 with Tomcat, MS SQL 2000.
      Thanks in advance for any useful advice.