Ebean

Minimal dependencies are:

  • Ebean ORM
  • Java persistence annotations for your entities
<dependency> <!-- EBean ORM. Requires enhanced entity classes -->
    <groupId>org.avaje.ebeanorm</groupId>
    <artifactId>avaje-ebeanorm</artifactId>
    <version>3.2.4</version>
</dependency>

<dependency> <!-- JPA annotations needed to create entity classes -->
    <groupId>javax.persistence</groupId>
    <artifactId>persistence-api</artifactId>
    <version>1.0.2</version>
    <scope>provided</scope>
</dependency>

If you wish to dynamically enhance your entity classes at application startup (i.e. you do not want to add entity class enhancement to the build process using the Ebean Maven plugin) you also need:

  • The Ebean bytecode enhancement agent
  • The Ebean agent loader

If you do not understand enhancement yet, just include the following dependencies anyway, it cannot do any harm

<dependency> <!-- Agent that dynamically enhances entity classes byte code -->
    <groupId>org.avaje.ebeanorm</groupId>
    <artifactId>avaje-ebeanorm-agent</artifactId>
    <version>3.2.2</version>
</dependency>

<dependency> <!-- Loader for loading/running byte code agent from classpath -->
    <groupId>org.avaje</groupId>
    <artifactId>avaje-agentloader</artifactId>
    <version>1.1.1</version>
</dependency>

Remember to check back regularly to make sure you are using the latest Ebean dependencies.

If you are using the Play Framework, see our special notes on how to manage dependencies there.

Professional Support

If you are intereted in receiving professional support services for Ebean please enter your email below and we will get back to you within 2 days.

We don't send out newsletters so no worrying about spam. Also, we never share your details with anyone.