Apoptosis66 wrote:
1. This isn't just a session.saveOrUpdate() issue with me, my object will persist even if I just do a session.load() another object or do a regular session.update();
Well, I have not tested all, but it's possible (and logic) to think that it happens (makes flush) also on update, load, query.list, query.iterate and probably others, depending of the flush mode, hibernate makes or not a flush prior to make a query (like in a load).
Apoptosis66 wrote:
2. I found someone who suggested setting the FlushMode.COMMIT after you beginTransaction(), however that didn't seem to help.
Yes, that is (or was) the solution. In fact we always handled it with FlushMode.COMMIT and it used to behave right. We just don't know why it's not working now.
Apoptosis66 wrote:
Someone must know what we are doing wrong...
Well... it worked well for at least a year and a half, so I don't think we are doing something really wrong. Maybe someone changed the way that feature works, or there is a bug in the framework (or we are not understanding how to use the feature, but as I told you it has been working for at least one year and a half).
In any case, it would be nice to hear an official opinion from the hibernate team.