ebean-orm-tools / finder-generator

Code generator for avaje-ebeanorm-typequery
Apache License 2.0
2 stars 3 forks source link

How to use finder-generator in Play Framework SBT project? #15

Closed eyeezzi closed 6 years ago

eyeezzi commented 6 years ago

I've also asked this question on SO. How would I configure my SBT project so the finder-generator can generate query beans for the entity beans in my SBT project? From reading the [Ebean documentation](), the only thing I could do was to add the following line to my build.sbt file

libraryDependencies += "io.ebean.tools" % "finder-generator" % "${version}"

Then I need to configure the generator to tell it where to find the compiled .class files of my entity beans etc but I don't know how to do this in an SBT project

Any help will be appreciated.

rbygrave commented 6 years ago

Hi, Ah sorry ... missed this question. Note that the best place for questions is the google forum - https://groups.google.com/forum/#!forum/ebean ... as many more people will see it and it is much less likely to get forgotten about.

Anyhow, your question ...

how to do this in an SBT project

Yes, I don't know that. Right now ... we run the finder-generator as an interactive maven plugin. I'll look to also add a Gradle plugin in the reasonably near future. Ideally we would have an SBT plugin as well but I don't know what is involved.

You could try posting this on the Ebean google group forum. There are Play / SBT people that could help move this forward.

Cheers, Rob.

rbygrave commented 6 years ago

So now we have the command line tool - http://ebean-orm.github.io/docs/getting-started/cli-tool

And I'd recommend you try that out. That generates finders and query beans. I'll close this now.