Thanks Kevin for the quick & positive response - encouraged me to persevere!

I have now succeeded in combining persistence.xml definitions (to override
db types) and class annotations. Key to this was adding a column-definition
to the join-column of many-to-one relationships (e.g.
column-definition="VARCHAR(50)") in my persistence mapping files - having
done this, the foreign keys are now being generated!

Tony

-- 
View this message in context: 
http://n2.nabble.com/Can-Class-annotations-and-xml-definitions-be-mixed-in-the-same-application-problem-with-many-to-one-n-tp4757250p4902118.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to