posted 14 years ago
I don't kow if this is an issue with Hibernate or Spring, but I'm using the Spring HibernateDaoSupport class from Spring for my Dao.
When calling a bulkUpdate, Hibernate is generating "bad" SQL. Essentially, the SQL generator is adding a comma after the table name, which causes an SQL Exception.
Here's the function call:
The relevant Entities are Session, which contains a reference to a ProvisioningProfile, which itself refers to a Device. (foreign keys all around.)
The SQL that hibernate is generating is:
As you can see, that extraneous comma, right after "apns.Session" is causing the problem. This SQL is just not valid.
Has anyone else had this problem? How can I fix this?
I'm using Hibernate 3.3.2 GA and Spring 2.5.6.