I have a class Organization, which has a set of Employee objects.
Employee descends from class User. In the mappings Employee is a
joined-subclass of User stored across 2 tables. The User has an
IsActive property/column, and I want the mapped Organization.Employees
set to have only active users.
I put IsActive=1 in the set mapping for Organization. But since it is
plain SQL with table name injection, the resulting SQL query prepends
the Employee table name for IsActive. While the correct table is of
course User.
Can I point NH to use the correct table name? I can open a JIRA ticket
with failing test if this isn't supported.
Felix.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---