简体   繁体   English

如何使用Maven在Eclipse Kepler中生成querydsl源代码

[英]How to generate querydsl source code in eclipse kepler using maven

I want to learn Querydsl. 我想学习Querydsl。 so I went through this link 所以我通过这个链接

http://blog.mysema.com/2010/07/querying-hibernate-with-querydsl.html http://blog.mysema.com/2010/07/querying-hibernate-with-querydsl.html

I have used maven and eclipse kepler. 我已经使用过Maven和Eclipse Kepler。 Its genetering the folder target/generated-sources but does not generating the java class ie QCustomer class. 它产生了文件夹target / generated-sources,但是没有产生java类,即QCustomer类。 I also googled for step by step tutorial but couldn't find.please help.I am beginner Thanks 我也用Google搜索了分步教程,但找不到。请帮助。我是初学者谢谢

Does it work from console, ie calling mvn compile ? 它可以从控制台运行,即调用mvn compile吗?

If not, do you have correctly annotated JPA entities in your artifact (are using Querydsl-JPA at all)? 如果不是,您是否在工件中正确注释了JPA实体(完全使用Querydsl-JPA)?

It it does work from console, you may have to install the m2e connector for build-helper-maven-plugin (simply search the Eclipse marketplace). 它确实可以从控制台运行,您可能必须为build-helper-maven-plugin安装m2e连接器(只需搜索Eclipse市场)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM