Thank you for reading my post.
I have an object when I store it using entityManager.persist method.
Now I need to get the primary key assigned to my entities in my java code. for example to return them to my users as reference key.
I have not been able to find a method in entityManager which can do this for me. Please let me know How I can do this.