posted 14 years ago
Hi krishna,
as far as I know the attribute name of the annotation JoinColumn is the name of the column in this table, not in the referenced one (which would be referencedColumnName, but can be omitted if the pk column is referenced).
In your case this would mean that you're trying to have two columns named productId in your database table productrelationship.
Try to rename them, e.g.:
John