Deprecate @org.hibernate.annotations.ForeignKey in favor of @javax.persistence.ForeignKey which was just introduced in JPA 2.1
Of course I've tried that (should've mentioned it) but the provider defaults are still used. Changing it to Hibernates annotation works.
Are there any addition requirements for this to work?
So to me, it sounds like you are reporting a bug? If so, please create a Jira and attach a test case.
, what version of ORM are you seeing that happen? This area was corrected in multiple ways in later releases. If it's still happening, please open a new ticket and ping me.
Version is 4.3.0.CR2. I could open a ticket, but I won't have time to provide a test example until next week.