2 persistent units with parameter generatedll=true --> All entities are generated in the 2 databases

Description

Hello,
I just configure 2 persistent Unit in my project; each persistent unit (attached to one particular datasource) manage different entities : everything works fine till I I set the generateDll parameter to true ( when I want to create the tables from the jpa entities)
When I run the application : it seems that it creates twice all the tables from the entities in the 2 databases.( instead of creating tables from entities managed by persistentUnit1 in database1, and also all tables .....in database2) : I cant figure out why it occurs.
When I run my application with the parameter "generateDll=false" : I have no problem with the demarcation of the 2 persistent Unit.
I attach my configuration files.
I have ever tried to use 2 persistent.xml files (one of each persistent unit) : but the problem still occurs.
Best regards.
Christophe

Environment

SPRING4 - HIBERNATE4

Assignee

Unassigned

Reporter

Christophe Larcher

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Affects versions

Priority

Major
Configure