Register / Login
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Java in General
Object Relational Mapping
Creating a JPA (Hibernate) proxy and set the Primary key later
posted 3 months ago
Well, I'm working on a library where I need to create a JPA reference of some serialized entity objects.
The time I need to create the entity reference I don't have the ID field value so I somehow first need to create the proxy and then set the id. So I cannot use the
Do you guys have any suggestions?
PI day is 3.14 (march 14th) and is also einstein's birthday. And this is merely a tiny ad:
Create Edit Print & Convert PDF Using Free API with Java
Boost this thread!
JPA, MySQL and @GeneratedValue
Object doesn't equal proxy, I think
JPA impl. w/Hibernate & Oracle PK Sequences/Triggers
Saving OneToMany , foreign key not set