tags:

views:

222

answers:

1

EntityManager doesn't seem to care in which order to persist entities but I need that. Any ideas?

+1  A: 

It would be expected for the EntityManager of the JPA implementation to have sufficient intelligence to work out in what order they are inserted in the datastore. At least that's how we develop DataNucleus. The only thing the spec provides for you is that you are responsible for the calls to em.persist() and can do em.flush() where you want to force all to go to the datastore.

--Andy (DataNucleus)

DataNucleus