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 inheriting between projects
PostPosted: Mon Nov 09, 2009 3:41 pm 
Newbie

Joined: Mon Nov 09, 2009 3:00 pm
Posts: 3
I have a question for how to model a feature in a project that I am going to be working on soon.

The project is going to be broken up into multiple projects, a Core project and then various subprojects that will all use the Core as a reference. The Core Domain project will define common business objects (users, companies, etc.).

The subprojects will want to be able to extend the core business objects to store any extra information relevant to the subproject.

For adding new properties in the inheritance, it is clear that it would be a version of table per subclass in the new project. Is there an example of how to do that between projects?

What of the case where I am adding a list to the object in the first project? How would that mapping file look in the subproject?

Example:
Core.Company has basic information about a company and is a Persisted POCO.

SubProject.Company inherits from Core.Company and adds a List<Project>. Project is a Persisted POCO in the subproject.

I hope that makes sense. If not, I can fill in more details.


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.