Skip to content
Generates DAOs for quill-cache
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
project
src/main
.gitignore
.travis.yml
README.md
build.sbt
eclipse.sbt
publish.sbt

README.md

License Build Status GitHub version

A code generator for quill-cache DAOs.

How to Use QuillGen

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 to target/quillGen/model/dao/Blahs.scala
    bin/run Blah
    
  • Write generated DAOs with strong cache for Blah, Foo and Bar to target/quillGen/model/dao/{Blahs,Foos,Bars}.scala
    bin/run Blah Foo Bar
    
  • Write generated DAO with strong cache for Blah to src/main/scala/model/dao/Blahs.scala
    bin/run -d src/main/scala/ Blah
    
  • Write generated DAO with strong cache for Blah to src/main/scala/Blahs.scala
    bin/run -d src/main/scala/ -p "" Blah
    
  • Write generated DAO with strong cache for Blah to target/quillGen/Blahs.scala
    bin/run -p "" Blah
    
  • Write generated DAO without a cache for Blah to target/quillGen/model/dao/Blahs.scala
    bin/run -c none Blah
    
  • Write generated DAO with a soft cache for Blah to target/quillGen/model/dao/Blahs.scala
    bin/run -c soft Blah
    
You can’t perform that action at this time.