-->
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: How to execute a database operation with HQL
PostPosted: Tue Feb 01, 2005 11:18 am 
Newbie

Joined: Wed Jan 26, 2005 8:05 am
Posts: 13
Hi guys,

I would like to execute a database delete operation on a row in a table
which could not be mapped as Entity or Composite object in Hibernate
style.

I wander how could this be done?
The Session API does not provide an execute method. Nor do the
Query or the Criteria APIs.

On the other hand I do not want to use the usual JDBC PreparedStatement
and break down my Hibernate Data Access Layer.

I use Hibernate 2.1.

Do you have any suggestions ?
Thank you.
Skyrose.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 01, 2005 2:02 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
session.connection()


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 01, 2005 2:08 pm 
Newbie

Joined: Wed Jan 26, 2005 8:05 am
Posts: 13
Hi Michael,
Thank you for your reply.

session.connection() is what I would like to avoid.
I would not like to mess my Hibernate data access layer
with standard JDBC code.

Isn't there any Hibernate standard solution for database operations
which are not queries or Hibernate Entities CRUD?

Thank you.

Skyrose.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 01, 2005 2:10 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
No, not currently.


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.