-->
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: pureXml support in Hibernate
PostPosted: Fri Jun 01, 2007 2:01 am 
Newbie

Joined: Fri Jun 01, 2007 1:44 am
Posts: 1
Location: Los Angeles, CA
Hi,

This question is for the arhitects of Hibernate. I've tried searching the forum and other search engines on how to integrate Hibernate and IBM's pureXml product. The system is not as hard if you use simple SQL statements on tables with xml data types from DB2 v9.

The problem arises when I use the new db2-fn which is typically followed by a colon ":" and the command you wish to do for an xquery statement. The dilema of course as you can see is that hibernate translates (in HQL) any text preceeded by the colon ":" as a parameter.

There were two ways for me to get around this but both of which I have a certain distaste for. The first method is to go to the lowest level of JDBC calls. But that totally defeats using Hibernate for such queries. The second way is to wrap my sql statements into stored procedures. But if I have an application that requires dynamic statements, that means building the logic into the stored procedure so that the statement becomes dynamic. It is a pain to code something like that on stored procedure and I would really prefer that programmed in my dao layer.

So, is there a way to get around the colon ":" problem. If not, are there any plans to support such a feature in Hibernate?

Thank you very much for your help or input on this problem.

_________________
Cash Only


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 02, 2007 3:27 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
what about showing the code you are trying to execute...

_________________
Max
Don't forget to rate


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.