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

Thanks!

Reply all
Reply to author
Forward
0 new messages