-->
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: reverse engineering many to many tables in hibernate for JAX
PostPosted: Fri Nov 19, 2010 6:28 am 
Newbie

Joined: Fri Nov 19, 2010 6:24 am
Posts: 3
Hello all

Im running web services behind JBoss. The stack has hibernate and we use it to derive object model from the relational model. When I have many to many relationships I try and use a bridging table on relational design usually, and when I reverse engineer the object model after that I have cyclic references in the object model hence when I try to send these objects back through JAX it results in the cycle detected saxexception. What Im wondering is, is the derived object model right? Or should I break relationship into many to one and one to many again but I cant see that solving the cyclic reference issue. Anyway I'm open to suggestions, it would be good to get some expert advice on this please. I would be glad to explain this a bit further too if needed.

Cheers


Top
 Profile  
 
 Post subject: Re: reverse engineering many to many tables in hibernate for JAX
PostPosted: Sat Nov 20, 2010 6:22 am 
Newbie

Joined: Fri Nov 19, 2010 6:24 am
Posts: 3
Any ideas guys? I'm kind of surprised to not find much on this subject on the internet. I guess I would have to write some DTOs on top of the domain model generated by reverse engineering to keep jax happy however that takes the primary need of hibernate to generate domain model away. Has any one found themselves in this situation? Or am I missing something really obvious?


Top
 Profile  
 
 Post subject: Re: reverse engineering many to many tables in hibernate for JAX
PostPosted: Sat Nov 20, 2010 9:19 am 
Newbie

Joined: Fri Nov 19, 2010 6:24 am
Posts: 3
Can anyone please give me some insights?


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.