-->
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: Inheritence-Table per Hierarchy within Table per Hierarchy
PostPosted: Sun Jun 28, 2009 4:46 pm 
Newbie

Joined: Sat Mar 07, 2009 2:24 am
Posts: 9
I am busy modeling a financial transaction system. In this system I have types of financial transactions like payments (representing purchases of an item) & refunds. Simple for this example.

I have modeled the domain like this so far:

Payment abstract class, inheriting from FinancialTransaction abstract class.
Sub classes like CCPaymemt, CashPayment, EFTPayment inheriting from Payment abstract class
Sub classes like CCRefund, CashRefund, EFTRefund inheriting from Refund abstract class

FinancialTransaction abstract class with subclasses Payment & Refund

I have a table per hierarchy mapping for Payments and a table per hierarchy for Refund with relevant hbm mappings.

I now need to create a FinancialTransaction mapping file that accounts for the Payment & Refund entities. What is the best way to do this? How do I create a the relevant mappings to Payment & Refund in the FinancialTransaction hbm mapping file?

Class diagram:
Image

Hope this makes sense

S


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.