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.  [ 1 post ] 
Author Message
 Post subject: Using Hibernate with structured XML data in Oracle XDB
PostPosted: Thu Mar 10, 2005 11:32 am 
Newbie

Joined: Sun Jan 02, 2005 10:17 pm
Posts: 13
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 2.1.6

Mapping documents: n/a for now

Code between sessionFactory.openSession() and session.close(): n/a

Full stack trace of any exception that occurs: n/a

Name and version of the database you are using: Oracle 9i

The generated SQL (show_sql=true): n/a

Debug level Hibernate log excerpt: n/a

Hello all,

I have a question on how to interact Hibernate with data stored in XML format using Oracle's XDB feature.

Description: I have registered my XML schema with Oracle XDB. Data will be stored into Oracle in XML format. I am now in the process of creating database views which maps to the xpaths so that other processes can manipulate these XML data using relational queries, without knowing or understanding the structure of the XML documents.

Question: I am not sure how to provide surrogate keys and version columns for these views so that Hibernate can perform its magic. Specifically, the complex types in my XML schema currently do not have elements for the surrogate keys or the version columns defined. Do I need to provide surrogate key and version elements for each complex type in the XML schema so that each database view can include the surrogate key and version columns? I guess my general question is: if Hibernate were to interact only with database views, should these views include surrogate key and version columns as well (so I can still take advantage of Hibernate's managed versioning, transient vs. detached instances, and all that good stuff)? Or is there something entirely different that I should focus on such that Hibernate can handle structured XML data in Oracle XDB?

Thanks in advance for any comments/suggestions. Please let me know if I should provide more clarification.

IK


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.