Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-module project is not generating Q*-classes #7

Open
markuslamm opened this issue Aug 12, 2015 · 0 comments
Open

Multi-module project is not generating Q*-classes #7

markuslamm opened this issue Aug 12, 2015 · 0 comments

Comments

@markuslamm
Copy link

Hi!

I have a multi-module Play 2.4 setup with a 'commons' and a 'domain' module, both contain entities that need to be transformed to Q*s. But a can't figure out the sbt setup to make it work, no files will be generated..
I can get this working with a model package like you described in the README (version 0.1.2). But my entities are located in the submodules.
So here is my config:

lazy val commons = (project in file("modules/commons"))
.settings(commonSettings: _*)
.settings(queryDSLPackage := "net/twentyfourseven/commons/domain/jpa")
.enablePlugins(QueryDSLPlugin)

lazy val domain = (project in file("modules/domain"))
.settings(commonSettings: _*)
.settings(queryDSLPackage := "net/twentyfourseven/registration/domain")
.dependsOn(commons)
.enablePlugins(QueryDSLPlugin)

lazy val root = (project in file("."))
.settings(commonSettings: _*)
.dependsOn(commons, domain)
.aggregate(commons, domain)
.enablePlugins(PlayJava, QueryDSLPlugin)

I have to say that I'm new to sbt, scala, play, so maybe it's just a stupid configuration mistake.
Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant