This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Map id to an object with id field
 
Similar Threads
inheritance and schema creation using JPA annotations
Replacing *.hbm.xml files with @Annotations.
one to one unidirectional mapping in jpa
Database Schema / Facade Interface
Help with JPA