This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes @Column annotation is ignored in Embedded object:Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "@Column annotation is ignored in Embedded object:Hibernate" Watch "@Column annotation is ignored in Embedded object:Hibernate" New topic
Author

@Column annotation is ignored in Embedded object:Hibernate

Vimal Kumar Venugopal
Ranch Hand

Joined: Aug 20, 2011
Posts: 43

Howdy Ranchers,

I have been trying out a few Hibernate sample programs and encountered the following problem:

I have an embedded object,


And the Entity object using this class is,


And the hibernate.cfg.xml as,


There is no error and the inserts are working fine. But while the @Column name is picked up from the entity class, the @Column from the embedded class seems to get ignored.

If you could help me out, I would be greatly privileged!

Thanks a ton

"Value has a Value only if its value is valued!"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: @Column annotation is ignored in Embedded object:Hibernate
 
jQuery in Action, 3rd edition