[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Transactions and strange behaviour

2009-05-02 Thread gusgorman
Hello again, more info now. I now understand that the session is being flushed when I commit a transaction, and that is why updates are occuring to Question objects at that point. But why does hibernate think that these objects are dirty? They definately shouldn't be. I have implemented Audit

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Transactions and strange behaviour

2009-05-02 Thread gusgorman
Hi, I have some behaviour that I just don't understand. I have an entity Release, which has a one to many relationship with Question. Question has a composite key (i know...) and therefore we use a version attribute: The following behaviour is occuring: 1) Load a release. 2) Loop round its