These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hide properties from hibernate
PostPosted: Fri Jan 26, 2007 4:06 am 
Beginner
Beginner

Joined: Sun Oct 22, 2006 12:06 pm
Posts: 39
Hi!

I'm using CSLA Business Obects with NHibernate.
So I extend every object. In business object there is Error property, that shows error message based business rules, in ErrorProvider.

When I update some object and execute updateorsave command all objects are updated, and that's beacause business rules have some errors.

So Hibernate senses property change on Error property and puts up modifiedd flag.

One option is to use fields not properties, but then there are some fields that do not have anything to do with NHibernate (like object stack for undo purposes). Is there any attribute for this?

Or is there some another way, ie on Error propety change to validate isChanged value. In this case witch interface I should implement?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 26, 2007 4:18 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Just don't map Error property and NHibernate will never consider it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.