I have a shambles of a database schema that I can't change that has a table with no primary key, the only uniqueness is across all 4 columns. To map this I've used a Composite Id for all 4 columns. The problem now is that when I try to remove an instance of this entity from the owner's collection and call save on the owner (mapped with Cascade.AllDeleteOrphan()) it fails (unexpected row count, expected 1, actual 0). Looking at the generated sql in NHProf it's because the query being generated is using = NULL for one of the properties rather than is Null.
Is this a known problem? Any ideas for workarounds? I'm using NH 2.1.0.4000 Oracle 10g database -- 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.
