can you give a small example?  do you mean when the field annotated @Id is a String then find returns null?

On 25/10/2018 02:34, Pawel Veselov wrote:
Hello.

I just found out, the hard way, that OpenJPA strips the string entity
IDs when doing find().
It doesn't strip those values when saving entities with corresponding
primary keys.
Is there a particular reason for this? It sounds weird to create an
entity with primary key "0\t", but then not be able to find it right
after....

Thank you,
   Pawel.

Reply via email to