QueryDsl Intellisense / Netbeans 问题
我有从我的库中的 all 目录引用的所有 QueryDSL jar。我的问题是 NetBeans 没有看到“Q”对象。它们生成到与所有其他带“_”的 JPA 实体对象相同的目录中。其次,如果我使用“Q”对象,它会编译,但编辑器本身看不到它并认为这是一个错误。
有人有什么想法吗?我尝试编辑 Ant 文件,但也失败了。看来我不需要专门编辑它来生成。主要问题似乎是链接到 NetBeans 编辑器。
顺便说一句,我确实看过这个链接,而且我已经这样做了! 如何在 Netbeans 中设置类路径?
我在 Mac OSX 上也遇到这个问题和 Ubuntu Netbeans。 感谢帮助!
I have all the QueryDSL jars referenced from the all directory in my libraries. My problem NetBeans is not seeing the "Q"objects. They are generated to the same directory as all the other JPA entity objects with "_". Secondly if I use a "Q" object it does compile, but the editor itself does not see it and thinks it is an error.
Anyone have any ideas? I tried editing the Ant file but I failed at that as well. It does not seem that I need to edit it specifically for generation. The main problem appears to be linking to the NetBeans editor.
BTW I did look at this link and I already did this! How to setup classpath in Netbeans?
Also I have this problem on both Mac OSX and Ubuntu Netbeans.
Help is appreciated!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
一致的最佳修复是转到项目属性并将构建/生成源添加为源中的源包文件夹。
Best fix that is consistent is to go to project properties and add the build/generated-sources as a Source package Folder in Sources.
我也有同样的问题。我做了一个干净的&在项目上构建,这对我来说是成功的。我可以清楚地看到正在生成的 java 文件,并且类文件没有进入路径。 Clean 为我解决了这个问题。
I had the same problem. I did a clean & Build, on the project and that did it for me. I could clearly see the java files being generated, and the class files are not getting in the path. Clean did the trick for me.