tags:

views:

190

answers:

2

Hi guys,

I tried out beta1 of Hibernate, and annotations were supposed to be included, yet when I use the JAR file I cannot find org.hibernate.annotations.ForeignKey nor any ForeignKey annotation class inside the jar. Has this been deprecated or renamed?

Cheers

Nik

A: 

I think you need the hibernate-annotations jar I did with 3.2.1 so perhaps you need it with 3.5-beta1 too

Paul Whelan
As I mentioned, 3.5-beta1 says they're included starting with that release: "Bundled with Hibernate Core as of 3.5.x" https://www.hibernate.org/6.html
niklassaers
have you looked in the jar to see if that is the case?
Paul Whelan
I have, and I have not found this annotation where I expected it, thus my question to see if anyone knows if there is anything new with regards to the @ForeignKey annotation :-)
niklassaers
:) out of ideas so sorry
Paul Whelan
+1  A: 

Annotations / EntityManager will be bundled with Hibernate Core 3.5.x release; either beta1 does not clarify as release or somehow it got screwed up but it does NOT contain annotations or EntityManager.

You'll need to download them separately:

and add appropriate JARs to your classpath.

ChssPly76
Thanks for clarifying :-)
niklassaers