• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Map id to an object with id field

 
Mike Winkelmann
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Car.hbm.xml


HibernateMapId.java
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic