Skip to content

ebean-orm-tools/ebean-maven-tile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

379 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ebean-enhancement tile

Maven tile that performs the Ebean enhancement and Query bean enhancement.

Example use

In your project pom under build / plugins add the tiles-maven-plugin with the following configuration. Note that this example also brings in the java-compile tile.

      <!-- maven build / plugins -->

      <plugin>
        <groupId>io.repaint.maven</groupId>
        <artifactId>tiles-maven-plugin</artifactId>
        <version>2.19</version>
        <extensions>true</extensions>
        <configuration>
          <tiles>
            <tile>io.ebean.tile:enhancement:12.8.2</tile>
          </tiles>
        </configuration>
      </plugin>

What it does

Effectively the ebean enhancement tile brings in 3 plugins:

  • ebean-maven-plugin ... for enhancing Entity beans and @Transactional (in src/main and src/test)
  • querybean-maven-plugin ... for enhancing "Query beans" (in src/main and src/test)
  • codegen-maven-plugin ... for generating "Finders"
  <!-- defaults, override in your project pom if needed -->

  <properties>
    <ebean-maven-plugin.version>12.1.6</ebean-maven-plugin.version>
    <ebean-maven-plugin.args>debug=0</ebean-maven-plugin.args>
  </properties>

  <!-- brought into build / plugins -->

  <build>
    <plugins>

       <plugin>
        <groupId>io.ebean</groupId>
        <artifactId>ebean-maven-plugin</artifactId>
        <version>${ebean-maven-plugin.version}</version>
        <executions>
          <execution>
            <id>main</id>
            <phase>process-classes</phase>
            <configuration>
              <transformArgs>${ebean-maven-plugin.args}</transformArgs>
            </configuration>
            <goals>
              <goal>enhance</goal>
            </goals>
          </execution>
          <execution>
            <id>test</id>
            <phase>process-test-classes</phase>
            <configuration>
              <transformArgs>${ebean-maven-plugin.args}</transformArgs>
            </configuration>
            <goals>
              <goal>testEnhance</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

    </plugins>

  </build>

About

Maven tile for enhancement (entity and query bean) and finder code generation

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors