IntelliJ Java IDE
The moose likes Object Relational Mapping and the fly likes [hibernate] OneToOne ownee has id = 0 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "[hibernate] OneToOne ownee has id = 0" Watch "[hibernate] OneToOne ownee has id = 0" New topic
Author

[hibernate] OneToOne ownee has id = 0

Alessandro Ilardo
Ranch Hand

Joined: Dec 23, 2005
Posts: 218
Hi there,
on my OneToOne relation I'm having a problem getting the ownee's ID, which on a stamentent on a client always results = 0

= 0

belowe the classes




why am I getting that 0??

Thanks in advance


trying to decode a woman mind....
 
 
subject: [hibernate] OneToOne ownee has id = 0
 
Threads others viewed
Exception "javax.persistence.EntityNotFoundException: Unable to find ParkingSpace with 3
one to one unidirectional mapping in jpa
Problem while One to One Relationship
Problem at insert with relationship JPA 2.0
XMLEncoder not serializing the whole graph!
IntelliJ Java IDE