I am new to Websphere Application Server. Please let me know where I am doing wrong. I getjava.lang.NoSuchMethodError: javax.persistence.JoinColumn.foreignKey()Ljavax/persistence/ForeignKey;
I checked Google, but max answers say use version Hibernate 4.3.X and version JPA 2.1. I am using the same version. If I delete the JPA jar and add the javax.persistence jar, then I get the Namespace method not found.
My project uses JSF, EJB and JPA (Hibernate).
As I followed, it gives on this line of code
SessionFactory sessionFactory = configuration.buildSessionFactory(ssrb.build());
I am using SQL Server 2012 as a database
Thank you in advance
Boxes I use
antlr-2.7.7
com.ibm.mqjms
hibernate-commons-annotations-4.0.5.Final
hibernate-entitymanager-4.3.8.Final
hibernate-core-4.3.8.Final
hibernate-jpa-2.1-api-1.0.0.Final
jandex-1.1.0.Final
jasper
jasper-compiler-jdt
javax.ejb
javax.faces-2.1.7
javax.jms
javax.mail-1.4.4
javax.servlet
javax-inject
jsf-api-2.2.5
source
share