[Hibernate] OracleDialect: Rollback broken with native ID generation and not-null violations

2004-05-05 Thread Jonas . Kilian
Hi(bernate), I use OracleDialect for inserting into database with native ID generation. If I violate a not-null constraint, Hibernate (not the database) correctly throws an Exception. I do tx.rollback() then, but my POJO still contains automatically assigned ID (sequence). This means, it order

Re: [Hibernate] OracleDialect: Rollback broken with native ID generation and not-nullviolations

2004-05-06 Thread Jonas . Kilian
> this is not a bug, Hibernate does not do object-level rollback at all. > This means after a rollback, your objects are not guaranteed to have their > state reverted to that before the transaction start. You should either not > reuse the object after rollback, or implement it yourself if you nee