-->
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: Automatisches Speichern von Objekten verhindern
PostPosted: Wed Mar 08, 2006 9:37 am 
Newbie

Joined: Mon May 30, 2005 6:27 am
Posts: 6
Wie kann ich verhindern, dass Hibernate anfängt Objekte automatisch zu speichern?

Ich habe Objekte an Formulare gebunden und nun das Problem, wenn die Benutzereingaben unvollständig sind, Hibernate das Objekt trotzdem speichert auch wenn ich keine save Methode aufrufe.

Ich benutze Spring 1.2 und Hibernate 3.0.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 08, 2006 11:53 am 
Newbie

Joined: Mon May 30, 2005 6:27 am
Posts: 6
Habe jetzt selbst eine Lösung gefunden:

Man kann das Speichern verhindern, indem man das Objekt mit
session.evict(obj); aus der Hibernate Session entfernt.


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.