开发者

Eclipse JPA structure view, detail view, and persistence.xml editor not working?

Eclipse has pretty cool JPA Structure and JPA Detail views along with a persistence.xml editor and a JPA perspective. However, I cannot seem to get them to "turn on". I had them all working several months ago, but something must have changed.

Any tips as to what secret sauce is needed to get them开发者_开发问答 working again?


I don't really use Dali but if I recall correctly you need to add the Java Persistence Facet to your project (right-click on a project then go to Properties > Project Facets and select Java Persistence). Maybe have a look at the Getting Starting guide.


Turns out this is a bug with Dali not understanding the Maven way of filter resources:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=251323

Who knows when this gets fixed, but I got around it by removing the "**" exclusion on my persistence module's resources directory in the build path. I basically included Meta-Inf and excluded everthing else.

I then did a project->clean.

Hope this helps somebody....

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜