ZacharyKlein opened a new issue, #14624:
URL: https://github.com/apache/grails-core/issues/14624

   See the sample app in the linked repo for the example.
   
   
   Given a domain class and a subclass, and a third class which uses both 
parent and subclass as `hasMany` collections:
   
   
   `static hasMany = [otherProducts: SuperProduct, products: Product]`
   
   ... if the subclass collection is typed as `List`: 
   
   `List products`
   
   ...app startup will fail with this error from Hibernate: 
   
   ```
   Failed to instantiate [org.grails.orm.hibernate.HibernateDatastore]: 
Constructor threw exception; nested exception is 
org.hibernate.MappingException: Repeated column in mapping for entity: 
com.ociweb.Product column: iteration_id (should be mapped with insert="false" 
update="false")
   ```


-- 
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]

Reply via email to