Hi, I can do one to one mapping easily using hibernate. But im not satisfied design.
One example:
1. Customer Class ---> private int customerID private int CustomerName private CustomerDetail customerDetail 2. CustomerDetail class --> private int customerID private Customer customer
Table Design ---> Customer CustomerID , CustomerName CustomerDetails ---> CustomerID
My question is why customerDetail class should have Customer once more. (This one i dont like)? One to one unidirectional....
I didnt understand...Can any one discuuss on this...
|