I have a question related to data saving in DB using JPA/Hibernate. I have to save data like -
Customer -(1)——(M)-Service-(1)——-(1)-Plan
One customer has many services and each service is associated with single plan.
When I am saving a customer, I have a data related to service and plan as well.
Any pointers??
How to save this relation …??
Atul
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Atul More wrote:Hey Rob thanks for ANswer.
Can you please tell me .. how? Some inputs... because I have a customer, he opt for services i.e. it is a list and each service has a plan associated with it.
Customer, Service and Plan are master tables and I want to save the relation of all these in DB
So how can I pass this entire relation to DB?
Where I need to put the relation points
Atul More wrote:
Atul More wrote:Hey Rob thanks for ANswer.
Can you please tell me .. how? Some inputs... because I have a customer, he opt for services i.e. it is a list and each service has a plan associated with it.
Service and Plan are master tables and I want to save the relation of all these(Customer -> Service -> Plan) in DB when I create any new customer.
So how can I pass this entire relation to DB?
Where I need to put the relation points
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |