I find it easier to work with the AR model than with the NHib one.
You can find the associations from the AR model pretty easily.

On 6/25/06, Craig Neuwirt <[EMAIL PROTECTED]> wrote:

It invokes NHibernate.IValidatable.Validate method which is
implemented by ActiveRecordValidationBase
 
good to know.  Unfortunately, I can't benefit from this yet.  I am constrained to use
the nasty data model described in an earlier thread.  I created an AR Domain Model
to reflect the business, but still must perform my own data access until I fully migrate
the database.  I am calling AR validation directly so i'll have to explicitly call IsValid on
the nested components until we can decide how to proceed.

> Should IsValid on an entity check IsValid on all associations and nested
> components.

Sure, but we don't have this information easily, do we? We'd need to
inspect the ARModel..
 
We sure don't.  If the ARModel does not exposed this information easily, I
wonder if the raw NHibernate Models would be any better.  They have
facilities to retrieve the associations. 
 
craig

--

Cheers,
hammett
http://hammett.castleproject.org/

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
CastleProject-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/castleproject-users


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


_______________________________________________
CastleProject-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/castleproject-users



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
CastleProject-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/castleproject-users

Reply via email to