Hi All,
I have two objects in a many to many reln.ship via a join table. I have to work with an existing schema. The join table has a couple of extra fields in it, not just the two id fields.
I set up the many-to-many hibernate mappings as has worked elsewhere in the code for me, but when I go to save I get an exception because the extra fields in the join table don't have a default value:
Caused by: java.sql.BatchUpdateException: Field 'position' doesn't have a default value
My other example has a simple join table with just two ids, and it works fine.
How do I solve this?
Thanks, Fred
|