File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem at insert with relationship JPA 2.0

 
Miltos Tereres
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is my Employee entity




Here is my Account Entity



When i try to add a new employee


in the database at the ACCOUNT table i get EMPLOY_ID NULL
why does this happen? what can i do ?
Thank you for your time...
 
James Sutherland
Ranch Hand
Posts: 553
 
Miltos Tereres
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the reply...
I am trying to understand why it works only from the owner side in one to one relationships...
I will read again your link...

so doing ac.setemploye() only instead of e.setaccount it would work?
i ll try...thanks...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic