-->
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: Overload hibernate mapped object
PostPosted: Wed Jul 02, 2008 4:48 pm 
Newbie

Joined: Thu Oct 18, 2007 8:30 am
Posts: 3
Hi,

here is my problem :

I have a core project and this project can have multiple modules for the moment I have one applicationContext for each modules which contains the module's mappingResources.

My problem is that in the core I have a user object but inside a module an object can have a relationship with the user object and therefore I need to redefine the user object to add theses relationships!

is there a way to overload the user object in order to avoid redefining user object?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 04, 2008 1:11 pm 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
You could always use inheritance, but it sounds like an instance variable that maintained a composition relationship would be a better, and more manageable, approach.

What's the big roadblock you're facing when implementing this? Is it a Hibernate mapping problem, or just a domain analysis problem from the object level?

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


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.