-->
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.  [ 4 posts ] 
Author Message
 Post subject: SaveOrUpdate & Native SQL
PostPosted: Sat Jun 04, 2005 2:55 am 
Beginner
Beginner

Joined: Tue May 31, 2005 5:36 pm
Posts: 21
Gibt's eigentlich auch eine Möglichkeit in Hibernate ein SaveOrUpdate in NativeSQL zu machen. Also z.B. so ähnlich? ...

Code:
Session session2 = HibernateSessionFactory.currentSession();
                  session2.saveOrUpdate("set onlinepwd = '" + text_onlinepasswort.getText() +  "' where kartennr = " + text_kartennr.getText());


Hab nämlich das Problem, dass ich auf die Art und Weise immer nur eine "java.lang.RuntimeException: Unknown entity class: java.lang.String" bekomme. :-(

Bitte um rasche Hilfe. :-)

Hibernate version: 2.0


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 04, 2005 5:47 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Hibernate 3, executeUpdate().


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 04, 2005 9:27 am 
Beginner
Beginner

Joined: Tue May 31, 2005 5:36 pm
Posts: 21
christian wrote:
Hibernate 3, executeUpdate().

Thx. Ich muss aber leider Hibernate 2 benutzen...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 06, 2005 11:31 am 
Newbie

Joined: Mon Jun 06, 2005 11:16 am
Posts: 2
Location: Austria
leethacker wrote:
christian wrote:
Hibernate 3, executeUpdate().

Thx. Ich muss aber leider Hibernate 2 benutzen...


Bitte sehr: http://forum.hibernate.org/viewtopic.ph ... 39#2245339


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.