0 Replies Latest reply on Dec 1, 2006 11:13 AM by 1 1

    Problem with onetoone mapping!

    1 1 Newbie

      I have some problems with onetoone mapping:
      May someone tell me whats wrong?
      Here is the short version:

      Tables and References:
      Test <------> Test2
      PK/FK id <--> PK id

      e.g. public class Test{

      private String id; //PK and FK

      protected Test2 test2;

      public class Test2{
      private String id; //PK, so that id of Test2 is the same as id of Test1

      This way I'm getting problems by creating an entitymanager and working with Test I think....

      THX for help!