Skip to main content

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

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

Back to the top