-->
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.  [ 3 posts ] 
Author Message
 Post subject: SQL API for insert, update and delete
PostPosted: Wed Oct 08, 2003 6:13 pm 
Newbie

Joined: Wed Oct 08, 2003 3:29 pm
Posts: 6
Hibernate currently only seems to support SQL SELECT's ( via Session.createSQLQuery() ). Are there any plans for implementing INSERT, UPDATE and DELETE complements to the existing SQL API ?

Regards,
Tim Saker


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 10, 2003 9:35 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Do you bulk functionality? Like adding 15% to _all_ product costs through an UPDATE statement? Probably not. Thats not really the purpose of an O/R tool.

Hibernate does support such a construct for bulk deletions using the Session.delete( String query ) method.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 13, 2003 9:57 am 
Newbie

Joined: Wed Oct 08, 2003 3:29 pm
Posts: 6
Yes - I see your point! Perhaps I should elaborate on the problem my team is trying to solve, and see if there is a way Hibernate can accomodate.

From a seperation of concerns and application maintenence standpoint, it would be desirable for my project team to seperate the relational language from our java code and, optionally, externalize that language ( i.e. XML'ize it ).

SQL statements, along with variable substitution, permit this approach quite nicely. Hibernate currently only supports the SQL SELECT methodology via the Query interface ( well, Hibernate's mutation of SQL anyway :=) ).

Regards,
Tim Saker


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