I have the next situation:
- Open transaction xxxx
- Save an object
ClassA-> fail
Code:
Hibernate: /* insert ClassA */ insert into class_a .....
WARN JDBCExceptionReporter:100 - SQL Error: 1048, SQLState: 23000
ERROR JDBCExceptionReporter:101 - Column 'cccc' cannot be null
- Rollback transaction xxxx
- Open transaction yyyy
- Save another object of another class
ClassB -> Save OK
Code:
Hibernate: /* insert ClassB */ insert into class_b .....
- Commit transaction yyyy ->
Code:
ERROR AssertionFailure:45 - an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session)
org.hibernate.AssertionFailure: null id in [b]ClassA[/b] entry (don't flush the Session after an exception occurs)
So my question is... wth is going on there? Why if Im commiting the save of ClassB it broke in ClassA, which i already rollbacked?
Any clue will be really appreciated, this is making me mad :(