QueryDsl error. Q classes not generated

耗尽温柔 提交于 2019-12-06 14:39:49

In your sources you did not import the generated classes, for instance:

import com.qoobico.remindme.server.entity.QUser;

If you want to generate the classes without compile and/or install the package use the maven goal apt:process.

You can use IntelliJ to start such a maven goal, use the Maven Projects window. The window will show you all available goals.

On the commandline you could use the mvn cli, which can be downloaded here. Hint: the command from the help plugin mvn help:describe -Dplugin=com.mysema.maven:apt-maven-plugin will show you a list of all available apt-maven-plugin goals.

You configured the outputDirectory to: target/generated-sources/java To let your IDE find that classes, put them into your class path. Some IDEs like IntelliJ will do this automatically for maven projects, because that folder is the default.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!