A code generator for quill-cache DAOs.
Download this project:
$ git clone https://github.com/mslinn/quill-gen.git
$ cd quill-gen
To view the help message using the included bin/run
script:
$ bin/run --help
QuillGen 0.2.0
Generate quill-cache DAOs.
Usage: quillGen [options] Class1, Class2, etc
-p, --package <value> Package for generated quill-cache DAOs (defaults to model.dao)
-d, --outputDir <value> Directory to write generated quill-cache DAOs to (defaults to target/quillGen/)
-c, --cache <value> Type of cache for the DAOs being created (case insensitive, can be NONE, SOFT or STRONG, defaults to STRONG)
Class1, Class2, etc Names of domain objects to generate DAOs for
--help prints this usage text
Example usages:
- Write generated DAO with strong cache for
Blah
totarget/quillGen/model/dao/Blahs.scala
bin/run Blah
- Write generated DAOs with strong cache for
Blah
,Foo
andBar
totarget/quillGen/model/dao/{Blahs,Foos,Bars}.scala
bin/run Blah Foo Bar
- Write generated DAO with strong cache for
Blah
tosrc/main/scala/model/dao/Blahs.scala
bin/run -d src/main/scala/ Blah
- Write generated DAO with strong cache for
Blah
tosrc/main/scala/Blahs.scala
bin/run -d src/main/scala/ -p "" Blah
- Write generated DAO with strong cache for
Blah
totarget/quillGen/Blahs.scala
bin/run -p "" Blah
- Write generated DAO without a cache for
Blah
totarget/quillGen/model/dao/Blahs.scala
bin/run -c none Blah
- Write generated DAO with a soft cache for
Blah
totarget/quillGen/model/dao/Blahs.scala
bin/run -c soft Blah