Im using hibernate for establish connection with database. I found in web property for persistence.xml:
property name="hibernate.archive.autodetection" value="class"
It works fine when entities are in the same project with persistence.xml. But in my architecture i have another project for entities. I linked this two projects in my .pom file. And here is the problem. Entities are not detected by hibernate. There is any way to work around?
Technology stack of my project:
java se 8
maven
hibernate
pesistance