NH 5.2 - [joined-subclass] - The column has already been added in this SQL builder
64 views
Skip to first unread message
Marcin Sasin
unread,
Oct 25, 2019, 7:36:53 AM10/25/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nhusers
Hello,
We have recently upgraded NH v3 to v5.2 and we are facing a problem with collection mappings. We get below error:
NHibernate.MappingException:'Unable to build the insert statement for class 'abc'; a failure occured when adding the Id of the class. The column 'column_name' has already been added in this SQL builder
The solution we found is to add insert/update=false to the mapping. It works fine for many-to-one mapping but not for joined-subclass mapping (insert statement is missing).
Did anyone face this problem? Is there a way to solve this?