-->
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: Does Hibernate 3.2 supports Oracle XMLType
PostPosted: Fri Feb 23, 2007 7:38 pm 
Newbie

Joined: Fri Feb 23, 2007 7:30 pm
Posts: 3
Hi,

we are working on a content management system and we have to presist XML data into Oracle XML DB which would contain tables having XMLTYPE data. I would like to know the following

1) Does 3.2 version of Hibernate supports this feature out of the box.

2) Do we have to implement our own custom persister class for this.

3) Does using Usertype solves the problem with retrieval.

If anyone has worked on this, i would appreciate if he/she can share his views.

Rishi

_________________
Rishi


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 23, 2007 10:50 pm 
Newbie

Joined: Fri Feb 23, 2007 7:30 pm
Posts: 3
Any takers for this ...!!!! can the experts pour in thier opinion .

_________________
Rishi


Top
 Profile  
 
 Post subject: Re: Does Hibernate 3.2 supports Oracle XMLType
PostPosted: Mon Feb 26, 2007 10:57 am 
Newbie

Joined: Tue Nov 28, 2006 8:50 am
Posts: 12
Location: Dublin, Ireland
Hi Rishi,

rishi4you wrote:
Hi,

we are working on a content management system and we have to presist XML data into Oracle XML DB which would contain tables having XMLTYPE data. I would like to know the following

1) Does 3.2 version of Hibernate supports this feature out of the box.


nope! :(

rishi4you wrote:
2) Do we have to implement our own custom persister class for this.


Yuo "only" need to write your own UserType which implements UserType, Serializable. You will find some implementation of this usertype in the forums.

rishi4you wrote:
3) Does using Usertype solves the problem with retrieval.


What problem? No problems if you correctly implement your usertype! ;)

rishi4you wrote:
If anyone has worked on this, i would appreciate if he/she can share his views.
Rishi


Done ;)
Adding support for XMLType in hibernate is quite straightforward, but you will incur some problems when reverse-engineering: I still have some mapping issues!
Hope I cleared out some doubt!!
Xserty


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 26, 2007 11:49 am 
Newbie

Joined: Fri Feb 23, 2007 7:30 pm
Posts: 3
Hi,

As per my understanding implementing the UserType interface is only meant to take care of the Serialization of the w3C DOM type which oracle returns to a generic type on which you can invoke XMLTYPE methods.

What about the follwowing .

1) How do we take care of mapping of Class to the XMLTYPE table.

2) Can we invoke the methods of the HibernateTemplate (i.e save ) OR we have to make use of JAVA DOM API for XMLType .

regards
Rishi

_________________
Rishi


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.