NHibernate in Action, Working with persistent objects, Using business (nhibernation.blogspot.com)
submitted by
M.SD(170) 3 years, 3 months ago
Quote from book:
"Notice that it’s almost never correct to
override Equals() on a subclass and include another property in the comparison. It’s tricky to satisfy the
requirements that equality be both symmetric and transitive in this case; and, more important, the business key
wouldn’t correspond to any well-defined candidate natural key in the database (subclass properties may be
mapped to a different table)."
|category: Open Source
|Views: 16
tags:
OpenSource another
Everyones tags:
Your Tags: