-->
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.  [ 1 post ] 
Author Message
 Post subject: Write Only Properties
PostPosted: Mon Feb 18, 2008 5:18 pm 
Newbie

Joined: Tue Jan 15, 2008 6:41 pm
Posts: 2
I am currently working with some legacy databases that store aggregate values pre-calculated in the tables. Obviously, my domain model doesn't really care about that and aggregates the values on demand during runtime, but when persisting the entities back, I need to save those calculated values.

This leads me to my question of having a write-only attribute on properties. NHibernate would not select the values (or would select the values for update purposes and just not try to set them) and only persist them. Any ideas? I've tried custom types but they don't really fit...


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

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.