[hibernate-dev] Where is annotation <-> column name mapped?
gbadner at redhat.com
Wed Dec 7 03:51:56 EST 2011
You can get the identifier column names from AbstractEntityPersister.getIdentifierColumnNames() .
----- Original Message -----
> From: "Paweł Stawicki" <pawelstawicki at gmail.com>
> To: hibernate-dev at lists.jboss.org
> Sent: Tuesday, December 6, 2011 4:07:20 PM
> Subject: [hibernate-dev] Where is annotation <-> column name mapped?
> I'm trying to fix some bug on Hibernate
> (https://hibernate.onjira.com/browse/HHH-6580), and I need to get
> following information:
> 1. Which property is an entity ID?
> 2. Which column name in table corresponds to this property?
> What class/object has this information?
> I spent few hours on it, but I can't tie it all together. Maybe some
> documentation would help? I found that
> EntityMetamodel.getIdentifierProperty can give me answer to question
> 1, but I can't find answer for question 2.
> Best regards
> Paweł Stawicki
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
More information about the hibernate-dev