-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate 4: no EntityMode.DOM4J? no dom4j export?
PostPosted: Tue Jun 05, 2012 5:49 am 
Newbie

Joined: Tue Jun 05, 2012 5:39 am
Posts: 2
with hibernate 3 i was able to export xml data using a session with EntityMode.DOM4J:

Code:
Session session = sessionFactory.getCurrentSession();
org.hibernate.Session dom4jSession = session.getSession(EntityMode.DOM4J);
...


today i tried hibernate 4. The package org.hibernate.classic is empty and there's no DOM4J in EntityMode anymore. i also tried setting the property "hibernate.default_entity_mode" to "dom4j", but this refers to the same error as above (Caused by: java.lang.IllegalArgumentException: No enum const class org.hibernate.EntityMode.DOM4J).

seems that also someone else has this problem: https://hibernate.onjira.com/browse/HHH-6879

Is it still possible to use dom4j xml serialization with hibernate 4? or am i missing something else?

thank you


Top
 Profile  
 
 Post subject: Re: Hibernate 4: no EntityMode.DOM4J? no dom4j export?
PostPosted: Wed Jun 06, 2012 3:57 am 
Newbie

Joined: Tue Jun 05, 2012 5:39 am
Posts: 2
Quote:
That feature was always experimental and has been removed. I would like to get back to allowing such a thing, but it will more be allowing "marshallers" to be passed in. If you feel like working on that, contact the dev team on the hibernate-dev mailing list.


not good. is there something equivalent? i dont want to put additional jaxb annotations in my objects...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.