Simple Spring+Hibernate application template supposed to test some ideas from command line. In default configuration
working with embedded H2 database (the engine and hibernate dialect can be switched in clibernate.properties
).
- Create model classes derived from
BaseEntity
. - Create repositories derived from
BaseRepository
. - Create command line services derived from
BaseCliService
, parse command line options and perform actions. - Build with
mvn package
. - Run with
java -jar clibernate-1.0-SNAPSHOT.jar [your_options] [your_service_name]
.
The example is included in TestCliService
class.