tmanthey opened a new issue, #14459: URL: https://github.com/apache/grails-core/issues/14459
Based on the [official example](http://docs.grails.org/3.0.17/ref/Database%20Mapping/joinTable.html) the following example will fail with `org.hibernate.AssertionFailure: Table mm_author_books not found ` As the the similar unidirectional many-to-many mapping works just as expected with even the potentially identical mapping table I assume it's a bug. UPDATE: if you use `tablePerConcreteClass true` instead of `tablePerHierarchy false` it works. As we dont use an abstract base class both will create the same DB-mapping. ``` class SomeBase { static mapping = { tablePerHierarchy false } } class Book extends SomeBase { String title static belongsTo = Author static hasMany = [authors: Author] static mapping = { authors joinTable: [name: "mm_author_books", key: 'mm_book_id' ] } } class Author extends SomeBase { String name List books static hasMany = [books: Book] static mapping = { books joinTable: [name: "mm_author_books", key: 'mm_author_id'] } } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
