-->
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: Hibernate to map object to xml and xml to db?
PostPosted: Sun Sep 12, 2004 1:53 pm 
Newbie

Joined: Sun Sep 12, 2004 12:40 pm
Posts: 2
Does Hibernate map object to xml and xml to DB table? That use xml as an intermedia form between object and db instead of directly mapping.

This may sound silly, but in the scenario where object data need to be cached at client location before pushed to the remote DB storage, xml can be the medium used in caching in local file/table, transmission over wire, then transformed to relational DB.

Though normally when converting object to xml, it's serialize/deserialize or xmldom, but since Hibernate already built in the mechanism to map between object and db tables, it would be ideal to generate xml as an alternative.

Thanks for any advice.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 12, 2004 2:36 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
No, Hibernate (and no other DB middleware solution I know of) doesn't do this and it would be a really bad idea to use the most verbose text file format for data caching.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 13, 2004 2:49 am 
Newbie

Joined: Sun Sep 12, 2004 12:40 pm
Posts: 2
christian wrote:
No, Hibernate (and no other DB middleware solution I know of) doesn't do this and it would be a really bad idea to use the most verbose text file format for data caching.


I'd like to stress the "caching" here does not necessary mean caching in memory as normally object caching would do. This is in fact a temporary persistence though logically a way to "cache" data at remote location before a message queue transmit it over internet wire. xml can serve as a form to persist the data between locations from distince to guarantee the message delivery.

Alternatively, db tables can be the persistence "medium" instead of xml. However, when it's the time transmit the data, it must be convert to some form of xml as the de facto standard of messaging.

Does HyperJAXB have any functions close enough for this objective?


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.