Details
-
Type:
Sub-task
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.1-beta3
-
Component/s: Persistence
-
Labels:None
-
Testcase included:yes
Description
If you have a many-to-many relationship, you cannot use a List collection type or you get the following error:
could not insert: [Bar]; nested exception is org.hibernate.exception.SQLGrammarException: could not insert: [Bar]
org.springframework.dao.InvalidDataAccessResourceUsageException: could not insert: [Bar]; nested exception is org.hibernate.exception.SQLGrammarException: could not insert: [Bar]
at FooTests.testManyToManyBars(FooTests.groovy:51)
Caused by: org.hibernate.exception.SQLGrammarException: could not insert: [Bar]
at $Proxy5.saveOrUpdate(Unknown Source)
Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column 'bars_id' in 'field list'
Issue Links
- is related to
-
GRAILS-3862
Can't have a Many-to-Many with a Map
-
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
Bulk closing bunch of resolved issues