wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
Hibernate SQLGrammarException
Hibernate example error message
Hibernate SQLGrammarException
Simple hibernate annotation example problem
Calling stored procedure in hibernate