-->
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: mapping oracle's XMLType
PostPosted: Fri Feb 06, 2004 9:13 pm 
Newbie

Joined: Fri Feb 06, 2004 9:08 pm
Posts: 1
I've been looking at Hibernate to use for our project. We're trying to use Oracle's XMLType to store/retrieve XML content. I was wondering if there's a way to do this within Hibernate. I'm looking at implementing an extension with UserType but not sure what SQL types to use since this the column type is specific to oracle (although I believe they are using CLOB in some way but not too sure). Any help would be appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 07, 2004 3:55 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Figure out how to access your data with JDBC first, then it will be easy to write a custom UserType for it.


Top
 Profile  
 
 Post subject: Re Mapping XMLType
PostPosted: Wed May 05, 2004 7:02 am 
Newbie

Joined: Wed May 05, 2004 6:59 am
Posts: 5
Actually this is more involved that it sounds. You need a JDBC Connection to be able to create an XMLType object - I've just played with this for some time with a JDO implementation - the route to handle it was using customised classes, which it doesn't seem Hibernate supports....

I assume then that the only way to handle this is to get a plain ordinary JDBC connection through the data source and treat is as part of the JTA transaction with an EJB


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.