aspose file tools
The moose likes Object Relational Mapping and the fly likes Map id to an object with id field Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Map id to an object with id field" Watch "Map id to an object with id field" New topic
Author

Map id to an object with id field

Mike Winkelmann
Greenhorn

Joined: Feb 26, 2013
Posts: 2
Hy guys

i want to map the id database column to an object wich contains an id value:



Do someone knows how i can map this field to my database column ?

I want to do like this:


I have googled so much but not found some solution for this .
Can someone help me ?

Regards
Mike
Alexander Bondarev
Greenhorn

Joined: Jan 04, 2012
Posts: 12
Car.hbm.xml


HibernateMapId.java
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Map id to an object with id field