JPA - multiple jars defining @Entity objects

后端 未结 5 1390
暖寄归人
暖寄归人 2020-12-03 07:31

We are developing a web application with Spring, Hibernate and Maven in a very modular fashion. There are core projects defining data access and view specific stuff, then th

5条回答
  •  时光说笑
    2020-12-03 08:00

    The classes will be in the class loader.

    This so answer Scanning Java annotations at runtime.

    Is that what you want? To scan for @Entity annotated and add them to a PersistenceUnit?

    Regards.

提交回复
热议问题