-->
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: What is the purpose of "Default billing details"?
PostPosted: Thu May 19, 2005 5:55 pm 
Newbie

Joined: Thu May 19, 2005 5:41 pm
Posts: 5
Hi CaveatEmptor Engineers,

I wants to know what is the purpose of the
<many-to-one name="defaultBillingDetails"
class="BillingDetails"
column="DEFAULT_BILLING_DETAILS_ID"
not-null="false"
outer-join="false"
foreign-key="FK1_DEFAULT_BILLING_DETAILS_ID"
/>
?
Where is the Actual DEFAULT_BILLING_DETAILS_ID value comes from?
Thank you very much.

Regards,
Chrono


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 19, 2005 7:57 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
This is explained in chapter 3, one of the credit cards or bank accounts is always the default one. Another solution for this would be a flag on the BillingDetails, with a unique on FK constraint. This one's easier.

http://www.kschultz.de/images/CaveatEmptorUML.jpg
http://www.kschultz.de/images/CaveatEmptorDB.jpg


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.