This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!