Skip to Main Content

JPA persistence.xml when doing static weaving

User_LU1VXJan 9 2023

When integrated the eclipselinke JPA with Spring, it can configure the entitymanager with spring @Configuration without persistence.xml so that it saves time to declare all entities classes in persistence.xml.

However, for static weaving, it seems to require the persistence.xml involved, without it, it won't work.

Is there any workaround for that? Or any way in coding level to generate the persistence.xml?

Comments
Post Details
Added on Jan 9 2023
0 comments
16 views