Hi,
I have the following problem where I have a solution for but I was wiondering of it could be possible to solve it more elegantly.
I have a class with two one-to-many associations.
Code:
Class A
Class B1 Class B2
Classes B1 and B2 are in the same table because they are subclasses.
When nhibernate fetches the one-to-many list for for instance B1 it does not add the discriminator column with its value. I added this manually with a where attribute for the set. Does anyone know if it is possible to ommit the where attribute and get it working correctly?
Thanks
Hibernate version: 1.2.0.4000
Mapping documents:Code between sessionFactory.openSession() and session.close():Full stack trace of any exception that occurs:Name and version of the database you are using:The generated SQL (show_sql=true):Debug level Hibernate log excerpt:Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.htmlCode: