[hibernate-dev] Question about substituting IDs in Hibernate OGM

Haswell, Josiah D Josiah.Haswell at ca.com
Tue Feb 10 20:40:21 EST 2015


Hi folks,

I'm creating a Hibernate OGM implementation for Datomic, and I have a question about IDs.

Say I have the entity

@Entity
public class Person {
@Id
@GeneratedValue
Long id;


}

In Datomic, you have to assign a temporary ID before submitting the transaction.  Datomic will then return the actual persistence ID after the transaction has completed.  My question is, how can I get the actual ID back into the entity?

Thanks!

Josiah


More information about the hibernate-dev mailing list