mysql « Transaction « JPA Q&A





1. Hibernate MySQL transaction configuration issue    stackoverflow.com

I'm having trouble starting a transaction with Hibernate and MySQL while running in JUnit. I'm getting a HibernateException which states: "No TransactionManagerLookup specified". I believe this error is because I don't ...

2. EJB transaction rollback with hibernate    stackoverflow.com

So I'm using container managed transactions in OpenEJB and Hibernate and I have a fairly simple transaction rollback scenario I'm trying to get to work. My DBMS is MySQL. I start off ...

3. commit transaction on hibernate    stackoverflow.com

i get this error when i'm using tx.commit more then one time Report type'exception

 message

 description The server encountered an internal error () that prevented it from fulfilling this request.

  ...

4. Hibernate exception on open sessions. How can I debug this?    stackoverflow.com

I am newbie in hybernate and I am struggling with the following exception:

Exception in thread "AWT-EventQueue-0" org.hibernate.HibernateException: illegally attempted to associate a proxy with two ...

5. MySQL & Locking    forum.hibernate.org

Hi, I'm trying to lock a row for update in a mysql db (v4.1 , type InnoDB): Ond ond = (Ond)sess.load(Ond.class, ondVAF.getOndnr(),LockMode.UPGRADE); ... sess.close(); this results in a sql query that should (?) lock this row: 17:15:23,150 INFO [STDOUT] Hibernate: select ondnr, version, bdrcd, afdcd, ondom, ondst from ond where ondnr =? for update But the row is not locked, for ...

6. MySQL & JBOSS, transaction after completion callback    forum.hibernate.org

Hi all, I use Hibernate2.1 with JBOSS-3.2.2, using MBean hibernate service. using this mapping: Code:

7. rollback doesn't work in MySQL?    forum.hibernate.org

Hi guys, I am using hibernate 2.1.4 and MySQL 4.0.20d for Windows. My question: why do the track objects are saved in the database although the transaction is rollback? Configuration cfg = new Configuration(); cfg.addClass(Track.class); SessionFactory factory = cfg.buildSessionFactory(); Session session = factory.openSession(); Transaction tx = session.beginTransaction(); Track track = new Track("Sza dzieweczka do laseczka","mp3/szla.mp3"); session.save(track); track = new Track("Ala ma ...

8. Rollback doesn't work on MySQL    forum.hibernate.org

I am using MySQL 4.0.20a, and have created the database tables of type innoDB. I am using AUTO_INCREMENT as the id generation scheme for objects. I am doing the following: JTA txn begin; PersistenceObject obj = new PersistentObject(); obj.set.....; getHibernateSession().save(obj); // this issues an SQL insert JTA txn rollback(); I expect the rollback to undo the save/insert. This doesn't work if ...

9. Transactions, JTA and MySQL    forum.hibernate.org

Newbie Joined: Sat Aug 07, 2004 4:23 pm Posts: 4 Hello, I am really confused about using transactions and MySQL when using the Hibernate MBean Service and JTA. If I execute the code below after the rollback nothing happens and the object is still present within the database. I have also tried to use Hibernate's transaction functions liek: Transaction tx = ...





10. Hibernate 3.1 and MySQL without transactions    forum.hibernate.org

It seems that from 3.1 Hibernate doesn't like non-transactional access, a quote from the migration guide: Quote: Or, if you believe that you can "read data without or outside of a transaction", you will likely face problems in Hibernate 3.1. Of course, there can be no data access outside of a transaction, be it read or write access Also in 3.2 ...