• Post Reply Bookmark Topic Watch Topic
  • New Topic

Want to Solve Problem with @OneToOne relationship with JPA-Hibernate?

 
Pranoj Ashtamkar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Want to Solve Problem with @OneToOne relationship with JPA-Hibernate?

I Have 2 tables
1. Plan
-- plan_id(pk)
name
plan_date

2. Plan_Details
-- plan_details_id (pk)
-- area
-- root
-- plan_id (FK) ref to plan table

How to declare in this way in JPA only? This is my project requirement? Please any budy help me to get out this probe?

Thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!