1 Reply Latest reply on Jan 7, 2017 6:37 AM by Ranganathan Kaliyur Mannar

    How to use Picketlink basic model objects in an existing JPA entity model?

    Akos Kempelen Newbie

      Hello,

       

      I have an existing JPA entity model, and I would like to use the basic User object in it, like this:

       

      @Entity

      public class Invoice implements Serializable {

      (...)

          @ManyToOne

          private User owner;

      }

       

      This is not working because org.picketlink.idm.model.basic.User is not an entity class. When I try to persist "Invoice", hibernate complains about unknown entity.

      I think there should be a simple way to map User class to AccountTypeEntity, but I could not figure it out yet.

      Thank you for your help in advance!

      Akos