-->
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: Can I convert a MAP entity to a DOM4J entity?
PostPosted: Mon Aug 27, 2007 11:18 pm 
Newbie

Joined: Mon Aug 27, 2007 11:11 pm
Posts: 8
Location: Brisbane
Hibernate version: 3.0

I have a requirement to track changes made to a database object and I was thinking a nice way to do this would be to store the before and after state of the object as XML text in a change tracking table.

My application currently uses EntityMode.MAP to read and update my hibernate objects. When I do an update, I would like to get the DOM4J representation of the object that I already have loaded previously as a MAP.

Does hibernate provide a way for me to convert my MAP representation of an object into a DOM4J representation?

Currently I'm having to create a DOM4J session and perform another get on the object to get the DOM4J representation of the object. This is a hassle because before I do the get I need to create the identifier first as a DOM4J element. I'm not using the hibernate metadata to create this so its not bullet proof (ie. I'm just assuming each property is an element).


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.