Play framework: Migration issue “HHH000388: Unsuccessful: alter table <table name> add column _ebean_intercept binary(255)”

98
July 16, 2017, at 8:54 PM

Models file looks like:

@Entity
public class Person {
  @Id
  @GeneratedValue(strategy=GenerationType.AUTO)
  public String id;
  public String name;
}

Database used is postgres, while applying migration it gave this error:

[error] o.h.t.h.SchemaUpdate - HHH000388: Unsuccessful: alter table Person add column _ebean_intercept binary(255)
[error] o.h.t.h.SchemaUpdate - ERROR: type "binary" does not exist

While at controllers level its giving these error:

1) Error injecting constructor, java.lang.NoClassDefFoundError: com/avaje/ebean/bean/EntityBean
at play.db.jpa.DefaultJPAApi$JPAApiProvider.<init>(DefaultJPAApi.java:39)
at play.db.jpa.DefaultJPAApi$JPAApiProvider.class(DefaultJPAApi.java:34)
while locating play.db.jpa.DefaultJPAApi$JPAApiProvider
while locating play.db.jpa.JPAApi
for parameter 0 at play.db.jpa.TransactionalAction.<init>(TransactionalAction.java:20)
while locating play.db.jpa.TransactionalAction

My controllers look like:

public class Application extends Controller {
@Transactional
public Result addPerson() {
    Person person = Form.form(Person.class).bindFromRequest().get();
    JPA.em().persist(person);
    return redirect(routes.Application.index());
}
.....

What may be causing this issue, what is concept of "_ebean_intercept" column ? Let me know if more information needed.

Answer 1

You are missing jar for ebean version 2.7.2 see ebean dependencies

READ ALSO
Understanding Apache Tomcat Connection Pooling

Understanding Apache Tomcat Connection Pooling

I am trying to implement Apache Tomcat's built-in JDBC connection poolBut I am confused with many things

54
how to disable only cut option on textview android

how to disable only cut option on textview android

I applied this code for Textview Selection

53
Change font of a JFoenix NumberValidator message

Change font of a JFoenix NumberValidator message

I want to change the font of a NumberValidator

45
Error: softValues() is not public in MapMaker; cannot be accessed from outside package

Error: softValues() is not public in MapMaker; cannot be accessed from outside package

Something strange is happeningIve built my Gradle project for 6 times and everything was fine

71