-->
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: Question about #ANN-572 and JPA and EntityMode.DOM4J
PostPosted: Wed Aug 12, 2009 6:59 pm 
Newbie

Joined: Tue Feb 24, 2009 8:39 pm
Posts: 19
I've been debugging Annotations code for about 15 days, looking to get EntityMode.DOM4J working with annotations.

My technique was to study how org.hibernate.cfg.HbmBinder works, then I try to replicate the same behavior on
AnnotationBinder.
To replicate the behavior of embed-xml=true, on HbmBinder embed-xml seems like default true.

Finally I changed these files:

AnnotationBinder, line 1947, added sentence:
value.setEmbedded(true);

and

CollectionBinder, line 627, added sentences:
collection.setEmbedded(true);
oneToMany.setEmbedded(true);

-I searched for ocurrences of setEmbedded-
I'm doubtful about AnnotationBinder, line 1546, it seems that the logic of javax.persistence.Embeddable interfers with the logic of the embed-xml flag.

Question, ¿does it really matters, not set the value on line 1546?
Does javax.persistence.Embeddable interfers whith EntityMode.DOM4J or viceversa?


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.