Hello,
I am currently working on a code that needs to read JPA configuration files and I thought I would use hibernate code to do that. After a little bit of plowing through hibernate code I figured how to get a meta data from xml files and get EntityBindings for my entities. However, I am having a hard time finding where I can get information on join columns. For example, I have an EntityA that has a reference to EntityB as defined below:
Code:
<many-to-one name="entityB" target-entity="somewhere.EntityB">
<join-column name="spooky" />
</many-to-one>
I've been reading through all properties in AttributeBinding for entityB property but I don't seem to find any reference to spooky. Can you tell me where I should be looking for join information in a hibernate metadata?