0 Replies Latest reply on Jan 9, 2007 1:29 AM by Pesoy Misak

    CMP Primary key for created instance is null

    Pesoy Misak Newbie

      Hi

      I am very new with JBOSS CMP. I am trying to create a test CMP for one of my projects and it throwing this error

      Here is the details

      I have a 1:N relationship eg Employee -> skills

      it's a bidirectional relationship

      Now within the skillbean i am trying to create skill in ejbCreate() and then establish the link within ejbPostCreate()

      the creation throw an error, said that the "employee_id cannot be null"

      now i look up on the wiki, and i made some modification like INSERTs after ejbPostCreate like stated on the wiki

      then it throws me an error, said that "Primary key for created instance is null"

      Could anyone please give a suggestion about this problem, i have been googling around but there is no answer regarding this matter

      cheers