-->
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: DELETE sql query
PostPosted: Tue Aug 18, 2009 10:36 pm 
Newbie

Joined: Tue Aug 18, 2009 10:26 pm
Posts: 4
Hi

I'm new to hibernate and i have a problem with DELETE SQL query for Oracle which all request going through hibernate.Previously who developed the systems has already left the company. Hence we dont have any related documentations as well.

When i went through the source , i have found only a select query. where would be the delete query located in ? as far as i got to know about hibernate all of queries are transparent from the general operation . That is why we don't see the queries directly.

Many Thanks
Luke


Top
 Profile  
 
 Post subject: Re: DELETE sql query
PostPosted: Wed Aug 19, 2009 10:03 pm 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
So, a developer using Hibernate doesn't need to write a query. All they do is write code.

In the code you'd see something like

Quote:
session.delete(objectToDelete);


So, it's all done programatically. The logs will show the SQL generated that gets sent to the database, but you don't need to put queries into your Hibernate programs. That's the beauty of Hibernate and JPA - you get persistence in an Java, object-oriented manner.

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


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.