By using @ForeignKey annotation from OpenJPA over relational dependencies seems to work fine.
But this is not right approach, makes the application dependent on the provider. Seems this is a bug in OpenJPA when oracle is used as it worked fine when Postgres was used (without @ForeignKey). -- View this message in context: http://openjpa.208410.n2.nabble.com/OpenJPA-2-2-0-Oracle-Issue-tp7582658p7582698.html Sent from the OpenJPA Developers mailing list archive at Nabble.com.
