How to Create / Include Multiple JPA Persistence Units

If you have multiple JPA persistence units in your persistence.xml file and your entities have the same name, you need to set

<exclude-unlisted-classes>false</exclude-unlisted-classes>

to:

<exclude-unlisted-classes>true</exclude-unlisted-classes>

Or else you will get

javax.annotation.processing.FilerException: Attempt to recreate a file for type ...

Comments

Popular posts from this blog

Check MySQL query history from command line