-->
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: Hibernate tries to store beans I wish to have it ignore.how?
PostPosted: Wed Mar 28, 2007 6:44 am 
Newbie

Joined: Fri Nov 18, 2005 1:01 pm
Posts: 18
Location: Delft, the Netherlands
Hi,

I have a mapped bean Transaction. I use the same Transaction bean to store summed information retreived from the TRANSACTION table in my mapped class Account. The Account.List in which the Transaction's are kept is not mapped and just serves as a holder which needs NOT to be stored in the database.

I find however that for these Transactions which I create by calling new Transaction(), onFlushDirty is called in the Interceptor. Does this mean Hibernate detectes me creating them and tries to store them? I don't want this behaviour and how can I prevent it?

Thank you,
Joost

_________________
Joost Schouten
JS Portal


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 28, 2007 7:11 am 
Newbie

Joined: Fri Nov 18, 2005 1:01 pm
Posts: 18
Location: Delft, the Netherlands
Ok, my bad.

It escaped my atention they where loaded somewhere else in my code and an evict did the trick.

Cheers,
Joost

_________________
Joost Schouten
JS Portal


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.