On 6/25/06, hammett <[EMAIL PROTECTED]> wrote:
I'm afraid not. The validation message is not broadcasted. However,
now the validation is automatically invoked by NHibernate during the
save, so in a way or another it will be invoked.
 
So NHibernate will event call IsValid on Components too?  I didn't know that.
 

The problem is that it's not consistent. You can have a
Order.IsValid() == true and the order wouldn't be save as one of the
inner entities (like OrderItem) is invalid.
 
That is a problem.  How does RoR ActiveRecord handle this? 

Any suggestion to overcome this?
 
Should IsValid on an entity check IsValid on all associations and nested components.

On 6/25/06, Craig Neuwirt <[EMAIL PROTECTED]> wrote:
> When an ActiveRecord entity is validated, are any nested components
> automatically validated too?

--
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

Reply via email to