A minimal Ebean maven project
Switch branches/tags
Nothing to show
Clone or download
rbygrave Add query bean support ...
- Make sure we have a ebean.mf ... with the querybean-packages specified
- Modify the pom adding the dependency for ebean-querybean and querybean-generator (provided)
Latest commit a535f8c Feb 16, 2018
Permalink
Failed to load latest commit information.
src Add query bean support ... Feb 16, 2018
.editorconfig Update for Ebean 11.10.5 Feb 16, 2018
.gitignore Update pom and example code Jun 24, 2016
LICENSE
README.md
pom.xml

README.md

Minimal

A minimalist project with a single Customer entity bean.

When running in the IDE it is best to install the "enhancement" plugin. Refer to http://ebean-orm.github.io/docs/setup/enhancement#ide

Normally

This example is very simplistic so just some notes.

  • Normally entity beans extend a @Mappedsuperclass bean which has common properties like @Version, @WhenCreated, @WhenModified etc

  • With Ebean due to it's stateless nature people often use a more "active record" extending Model and using "Finders". Look at example-active-record for this.

  • DB Migration: This example also does not have a MainDBMigration method which generates migration ddl. Look at example-active-record for this too.