Hello NH group,
I'm getting my unit tests to work with NH 2.1.0 GA (upgrading from NH
2.0.1 GA) and have found that for one HQL query that uses the ".class"
syntax for querying on the class discriminator I'm having to fully
qualify the class name with 2.1 whereas previously I didn't. The
documentation (section 13.7: http://nhforge.org/doc/nh/en/index.html)
seems to suggest that you should use the fully qualified name.
I'm just wondering if I've been lucky with how I've been building my queries.
Thanks,
Luke
Here is the query - ConversationWorkflowItem can contain many
EntryWorkflowItems - prior to 2.1 I did not need the
"FOO.Workflow.Domain" qualifier:
string hqlFmt =
@"from WorkflowItem as wf
where
{0}
(
(wf.class =
FOO.Workflow.Domain.ConversationWorkflowItem and wf.OwnedBy =
:argOwnedBy) or
(
(wf.class =
FOO.Workflow.Domain.EntryWorkflowItem and wf.OwnedBy = :argOwnedBy)
and
exists (
from ConversationWorkflowItem cwf
where
wf.ConversationWorkflowItem =
cwf and cwf.OwnedBy != :argOwnedBy
)
)
)";
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---