-->
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: Is there any way to use hibernate against an xml data store?
PostPosted: Fri Jun 02, 2006 9:12 pm 
Newbie

Joined: Tue Sep 30, 2003 2:00 pm
Posts: 11
Hi -
I was wondering if there was anyway to get hibernate to operate against data stored in xml files (at least in a limited way).

(I realize hibernate is an oRm tool, where the 'r' is relational, but...)

Why would I want to do this? 1) leverage hibernate mappings to define and xml mapping 2) treat my data access abstraction a single way whether the session is connected to a real db or an xml file.

One option I found was a commercial JDBC driver that reads/writes to xml files. Some sort of mapping is required. Then I guess a hibernate dialect would be needed for that jdbc driver.

I'm hoping for an easier solution. I'd be willing to write an XML dialect if that were possible, but glancing at org.hib.dialect.Dialect, it looks very SQL oriented and maybe not possibly w/o extensive hackery.

From what I read about the XML mapping in hibernate is that converts results from a real DB into XML elements, which is not what I'm looking for.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 02, 2006 9:19 pm 
Newbie

Joined: Sun May 14, 2006 5:09 pm
Posts: 11
HIbernate is able to do it.
please read:

http://www.hibernate.org/hib_docs/v3/re ... l/xml.html


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 05, 2006 5:45 pm 
Newbie

Joined: Tue Sep 30, 2003 2:00 pm
Posts: 11
richwin618 wrote:
HIbernate is able to do it.
please read:

http://www.hibernate.org/hib_docs/v3/re ... l/xml.html


No, that is quite different. As I mentioned above this is not what I want.

The xml mappings stuff allows you to read or write XML "pojos" to a database. I want the "database" to be xml.

"You can write queries that retrieve dom4j trees from the database and have any modification you make to the tree automatically synchronized to the database."

Essentially, I'm looking for something like a hibernate driver for castor, or xmlbeans.


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.