4 Replies Latest reply on Nov 10, 2010 4:23 AM by csenes

    Same id issue

    csenes

      I have two entity and I want to make same id at datas of these entities ,Which annotation do this, I searched but I cant find anything


          @OneToOne                  @OnetoOne()
          Product--------------------Market


      1  2131455                  2131455
      2  3656474                  3656474
      3
      .
      .


      like this ,I hope I explain

        • 1. Re: Same id issue
          csenes

          I have two entity and I want to make same id at datas of these entities ,Which annotation do this, I searched but I cant find anything


              @OneToOne                  @OnetoOne()
              Product--------------------Market
          
           1  2131455__________________2131455
           2  3656474__________________3656474
           3
           .
           .
          


          like this ,I hope I explain



          • 2. Re: Same id issue
            csenes

            anybody didnt reply me I am waiting for any answer please help me

            • 3. Re: Same id issue
              lvdberg

              Hi,


              Use the




              @PrimaryKeyJoinColumn
              




              Leo

              • 4. Re: Same id issue
                csenes

                I just found it freshly ,thanks reply leo,you are the man