File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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

Map id to an object with id field

Mike Winkelmann

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 ?

Alexander Bondarev

Joined: Jan 04, 2012
Posts: 12
I agree. Here's the link:
subject: Map id to an object with id field
Similar Threads
Database Schema / Facade Interface
inheritance and schema creation using JPA annotations
Help with JPA
Replacing *.hbm.xml files with @Annotations.
one to one unidirectional mapping in jpa