I'm writing code that looks like Google Latitude (locate a user). I'm under tomcat 6.0.33, using jpa/hibernate, and easybeans 1.1
They work independently, but when I try to link them it fails:
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: entity] Unable to build EntityManagerFactory
Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]
Here is the code:
public class Personne{
@ManyToOne(fetch=FetchType.EAGER, cascade={ CascadeType.PERSIST,CascadeType.MERGE })
public Personne getOwner() {
return owner;
}
}
public class MaPosition{
@OneToMany
public List<Personne> getFriends() {
return friends;
}
}
Thanks for your help ;)