Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
2 persistent units with parameter generatedll=true --> All entities are generated in the 2 databases [SPR-12809] #17406
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)
Stéphane Nicoll commented
Thanks but your project does not compile for me, there are a lot of unnecessary stuff. "mvn package" in
Maybe you could enable logs of hibernate to see what is going on? Looking at the code, I don't think there is an issue on our side. Please provide a working sample that fails if you believe otherwise. Thanks!
christophe larcher commented
I just check the config you sent me : I have noticed the use of the tag "exclude-unlisted-classes" in your persistent.xml for each persistent unit.