Thanks it works ! I can now create InnoDB tables.
Problem : now I'm having problems with foreign keys when deleting an object. mySQL refuses to commit and Hibernate throws the following exception :
Code:
net.sf.hibernate.JDBCException: Could not synchronize database state with session: General error, message from server: "Cannot delete or update a parent row: a foreign key constraint fails".
The foreign keys is generated by hibernate to handle binary associations.
I've posted
http://forum.hibernate.org/viewtopic.php?t=931640
RobJellinghaus wrote:
orichaud wrote:
michael wrote:
Are you using InnoDB tables (you should)?
My tables are of type MyISAM. And I can do little against that as my tables are generated using hibernator the Eclipse plugin.
You must add the following to your MySQL.ini:
[mysqld]
...
default-table-type=InnoDB
This will make all your tables be InnoDB no matter who generates them, which is what you want if you want your tables to be transactional.
If you are on Linux I do not know how you set the default table type.
Cheers,
Rob
[url][/url]