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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Map id to an object with id field