Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dali-dev] Referenced Projects

Blake,

What you are experiencing is a current limitation in the Dali tools.  Currently we aren't able to recognize entities that are compiled into classes, which would include both dependent projects and entity classes in a JAR.  This functionality is being worked on currently, and is tracked under bug 197069 - https://bugs.eclipse.org/bugs/show_bug.cgi?id=197069.

The only workaround for now (maintaining your project structure) would involve adding the JPA Facet to your Java project (via the JPA Tools menu) and maintaining a "dummy" persistence.xml in that project to house the entities (which is required by our tooling).

Neil

Blake Hooper wrote:
Hi,
I have noticed that the JPA facet only searches src folders of the specific project it is installed in for annotated entities.
It does not look in referenced sub projects. Is this a bug? Or does it do this by design?

In my specific case I have a plain java project that holds the persistable annotated entities. This is referenced by a seperate ejb module project that holds described session beans and my persistence context description. It is also the project with the jpa facet but the facet does not find any of the entities in the sub project.

I have tried adding the jar of the sub project to the build path of the ejb module and adding the build class folder to the build path of the ejb module but neither had any effect.

During our build process the sub project is built into a jar library which is then included in the lib of the ejb module and everything is found fine by the classloader.

Thoughts appreciated,
Blake

_______________________________________________ dali-dev mailing list dali-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/dali-dev


Back to the top