Hi,
Weird problem I haven't seen before: I can insert and delete rows without problem when the MySQL table is MyISAM. However, when I change the storage engine to InnoDB, Hibernate can only insert, but not delete.
The only way I've found to programatically delete the rows is to use straight SQL directly on the Connection.
I've replicated this on two MySQL databases (5.0.45 and 5.0.27). I've used two different drivers (5.0.4 and 5.1.6).
I'm using Hibernate 3.2.2.ga.
The table is dead simple with no relationships and one autogenerated key.
Any ideas?
Michael
|