I hope I don't ask a stupid question.
Hibernate recommend seperating object id and business key,for example,
a product has a auto-generate id and a unique product serial No. Here is the question:
I and my colleagues are beginners for hibernate,in a recent project,I stick to the foreign key is referenced by id(auto-generate id),but one of my colleagues argues that we should use the business key(product serial No.) for FK. Of course,hibernate allow both,could you give me some valuable suggestion?thanks very much!
_________________ Nothing is impossible to a willing heart
|