Flush « ID « JPA Q&A





1. Is it necessary to flush a hibernate session when updating the id    stackoverflow.com

I've come across an odd quirk in hibernate. Namely, when updating one of the properties in a composite-id, I've found I need to flush the session after the delete in order ...

2. remove ID on failed flush    forum.hibernate.org

3. natural-id ArrayIndexOutOfBounds after session.flush    forum.hibernate.org

I have spent a week of evenings attempting to resolve what I thought would be an error in my mapping file. I finally decided to stop using a natural-id on my User entity and would just QBE with just the username set and set update="false" for the property mapping. I decided to step through the hibernate code for the checkNaturalId and ...