Hi,
I'm working with hibernate for 2-3 month. So I'm not mastering it yet. I got into a problem of inconsistency between persisted object. When I'm loading objects from two different transaction, hibernate actually create two different instance even if the object have the same ID.
I think the problem is related to the fact, my session open and close on every transaction.
Also, I've read in the 'Best Pratices' section to use long persistence context. Is it actually my problem ? Should I use a long persistence context. If so, how ?
Thanks for you're help.
|