s.grinovero wrote:
hi, thanks for reporting that.
Please add, which version of Hibernate? Could you try the latest one and check for duplicate issues on JIRA ?
Hi and thanks for your message.
I use the last version of Hibernate : 3.6.0.Final
And you're right it's a bug which has already been reported :
http://opensource.atlassian.com/project ... e/HHH-1657It has not yet been resolved but I found this solution to my problem :
In the table Chapter I rename 'id' to 'entity_id' in order to have different primary key names in tables EntityAff and Chapter.
Then I changed the @PrimaryKeyJoinColumn annotation over the class Chapter :
@Entity
@Indexed
@Table(name="chapter")
@PrimaryKeyJoinColumn(name="entity_id")public class Chapter extends EntityAff {
...
}
These changes resolve the problem I quoted.