1. How to fix HSQL DataSource + TxM where identity always return 0 stackoverflow.comI am using Hibernate to do my ORM stuff w/ HSQL for tests. It seems that a connection is fetched to do the insert and then returned. Straight after that HIbernate ... |
2. Identity Generator throwing - Cannot commit during a mgd tx forum.hibernate.orgNewbie Joined: Wed Jan 05, 2005 7:13 am Posts: 4 Hi, I know I cannot us hilo generators in a managed transaction but can I use Identity generators? Using an identity generator I still get the old "You cannot commit during a managed transaction!" error. The object is actually being persisted in the database but I'd feel much happier if I ... |
3. concurrency question generating serial number (non-identity) forum.hibernate.orgThis question is more of a general one, but I am still looking for a solution in Hibernate. Here is the requirement: One of the fields in the table is a serial number, or a 1-based index for a given foreign key owner. When adding a new row to the table, that value needs to be assigned with the next number ... |
4. Identity-insert and transaction rollback forum.hibernate.orgI have a question regarding Hibernate transaction rollback: does identity-insert participate in current transaction? If so, is it rolled back correctly with transaction? I'm asking this because I've a strage situation with it. More technical details follow. Hibernate version: 3.2 Hibernate settings: hibernate.dialect = org.hibernate.dialect.MySQLInnoDBDialect hibernate.show_sql = true hibernate.generate_statistics = true hibernate.bytecode.use_reflection_optimizer = true hibernate.cache.use_query_cache = true hibernate.cache.use_second_level_cache = false hibernate.cache.provider_class ... |
5. Transaction problem with identity generator class forum.hibernate.orgHi, I am having hibernate application with struts + mysql and using simple JDBC DAO pattern for db connection and transaction. But application can not be able to make rollback of the transaction ,if exception occurs (in short) there is not any effect of rollback with my database. While the same configuration works well with the generator class="increment" or anything. Is ... |