This week's book giveaway is in the Cloud forum.
We're giving away four copies of The Business Blockchain and have William Mougayar on-line!
See this thread for details.
Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate One to Many Bidirectional with assigned as Primary Key

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi , I am struck up here . Please somebody help me

I am trying to use Hibernate One to Many Bidirectional with assigned as Primary Key






Inside my client class I am

Story story = new Story();
story.setId(1234);
story.setInfo("Some");
story.setWriter();// I can't create Writer Object .


Writer writer = new Writer();
writer.setId(123);
writer.setName("Some");
//writer.setStories(stories) // I need a story Object here


Please help me , is it not possible to use assigned as Primary Key with One to Many Bidirectional??
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sorry for my foolish query . Please don't reply to this one .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic