-->
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: Why not using key with business meaning
PostPosted: Fri Dec 19, 2003 9:19 am 
Newbie

Joined: Fri Dec 19, 2003 9:12 am
Posts: 4
Location: France
I read in the doc "Be very careful when using this feature to assign keys with business meaning (almost always a terrible design decision)."

Why is it so a terrible design decision. Have someone an answer?

Tnx a lot.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 19, 2003 1:22 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Have a look at External documentation, thre are some good materials on that subject.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 19, 2003 2:06 pm 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
"business meaning" is mutable.

TABLE Customer

PassportNo PK (business meaning)
FirsName
LastName

Account

CountryCode + BankCode + No PK (more broken key )
Customer FK
Balance


It means I will lose balance if I will lose my passport, is not it ?


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.