Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-12809

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

    XMLWordPrintable

Details

    • true

    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 for each persistent unit) : but the problem still occurs.
      Best regards.
      Christophe

      Attachments

        Activity

          People

            snicoll St├ęphane Nicoll
            clarcher christophe larcher
            Spring Issues Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              3 years, 47 weeks, 2 days ago