Hello,
In my application I need to be able to query a View that doesn't have
a primary key. I didn't write the view and I can't change it. I only
need read-only access.

When I leave out the Id element, I get this error:

(XmlDocument)(3,6): XML validation error: The element 'class' in
namespace 'urn:nhibernate-mapping-2.2' has invalid child element
'property' in namespace 'urn:nhibernate-mapping-2.2'. List of possible
elements expected: 'meta, subselect, cache, synchronize, comment,
tuplizer, id, composite-id' in namespace 'urn:nhibernate-mapping-2.2'.

I suppose I could tell NHibernate to use a composite id made up of
every column in the view, but that feels dirty. What is the best way
to handle this?

TIA,
Gabe
-- 
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.


Reply via email to