Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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!