Some basic examples for Ebean. Usage of egg here is SSCCE not a hidden feature.
- Examples use PostgreSQL via environment variables for connection info.
- See
db_server
to build a database via Docker. - For command-line apps, you must create a database with tables that matches the desired code in
~/net/codetojoy/ebean/model
. No DDL, no evolutions, etc.
- See
RECOMMENDED: start here. This example is the simplest and fastest:
- egg_v2_commandline_app_no_spring_gradle
- no Spring Boot, simple project structure
- uses Gradle: very fast
- use-cases are written as tasks
- derived from this repo
These command-line examples use Maven and often Spring Boot (from the original work):
- egg_commandline_app_v15
- uses
jakarta.persistence
- use-cases are written as tasks
- uses
- egg_v2_commandline_app_no_spring_experimental
- no Spring Boot: much simpler Maven structure
- use-cases are written as tasks
- egg_commandline_app_v13
- uses
javax.persistence
- uses
- egg_commandline_app_v12
- uses
javax.persistence
- uses
Examples with the Play Framework (useful when working with Play, as jar versions are curated):
- egg_enum_mapping_play_v29x
- uses Play as a basic driver to experiment with Ebean
- See
LeagueController
,RosterController
- egg_enum_mapping_vplay_v30x
- uses Play as a basic driver to experiment with Ebean
- See
LeagueController
,RosterController