This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Description
Hi, All!
Error occurs when using Entity annotation.
I have a model:
package models;
import play.db.jpa.Model;
import javax.persistence.Entity;
@Entity
public class Employer extends Model {
}
Then run tests as play tests
And I get an error:
> Task :test
ApplicationTest > initializationError FAILED
play.exceptions.UnexpectedException
Caused by: javax.persistence.PersistenceException
Caused by: org.hibernate.MappingException
Caused by: org.hibernate.HibernateException
Caused by: java.lang.reflect.InvocationTargetException
Caused by: java.lang.IllegalArgumentException
Caused by: java.lang.NoSuchMethodError
BasicTest > initializationError FAILED
play.exceptions.UnexpectedException
Caused by: javassist.bytecode.DuplicateMemberException
2 tests completed, 2 failed
If I comment out the Entity annotation then tests passed ok.
example:
package models;
import play.db.jpa.Model;
import javax.persistence.Entity;
//@Entity
public class Employer extends Model {
}
> Task :combineUiTestResults
Combine statistics from
Combine statistics from
Combine statistics from
Combine statistics from
Combine statistics from
-------------------------------
Actions coverage:
Longest test classes:
Longest test methods:
Longest webdriver operations:
Longest webdriver calls:
-------------------------------
BUILD SUCCESSFUL in 42s
What's wrong?
Thank you.