I've a problem with current modification of inheritance hierarchy:

my previous model was (implemented with JoinedBase and JoinedKey all
the way):

BaseSearchCriteriaRecord
 | | \_  ProductSearchCriteriaRecord
 | \__ DemandSearchSimpleCriteriaRecord
 \___ DemandSearchAdvancedCriteria

due to requirement change I need to change things such as

BaseSearchCriteriaRecord
  | \_  ProductSearchCriteriaRecord
  \__ DemandSearchSimpleCriteriaRecord
           \___ DemandSearchAdvancedCriteria

I'm almost there but performing selection on
DemandSearchAdvancedCriteria will result to selecting all fields
defined on DemandSearchSimpleCriteriaRecord on the
DemandSearchAdvancedCriteria table instead of owner class.

the initial problem I got was (when saving as
DemandSearchSimpleCriteriaRecord and retrieving as
DemandSearchAdvancedCriteria):
NHibernate.Util.ADOExceptionReporter -
System.Data.SqlClient.SqlException:
Invalid column name 'field1'.
Invalid column name '...
with all fields inherited from DemandSearchSimpleCriteriaRecord , the
select statement was using the leaf class to get the field from the
middle class in the hierarchy.

Another one (when saving and retrieving as
DemandSearchAdvancedCriteria, and JoinedKey still defined on two
classes in the hierarchy):
"You can't specify more than one JoinedKeyAttribute. Check type
DemandSearchAdvancedCriteriaRecord"

And the last one (when removing JoinedKey on
DemandSearchSimpleCriteriaRecord ):
"The element 'class' in namespace 'urn:nhibernate-mapping-2.2' has
invalid child element 'subclass' in namespace 'urn:nhibernate-
mapping-2.2'. List of possible elements expected: 'joined-subclass,
loader, sql-insert, sql-update, sql-delete, filter' in namespace
'urn:nhibernate-mapping-2.2'."

anyone have idea of this problem?

I'll try later to isolate the issue with a simpler model if this can
help to illustrate the issue.

Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to