This content has been marked as final.
Show 1 reply
-
1. Re: EJB3 Persistence - how to read back assigned primary key
infinity2heaven May 22, 2008 6:19 PM (in response to dgriffin)I use Seam Managed entityManager (works much better than EJB3
persistentContext) and use a merge operation within a conversation scoped SFSB (where a save method is not the end of the conversation)entityManager.merge(foo);
foo.getId() // should give you the idIt automatically flushes and refreshes foo in this case.