title: Multiple persistence files in spring
body: <p>I'm trying to create multiple modules with multiple persistence xml files. Idea is to keep entity classes inside same module it belongs to. </p>
  
  <p>Module 'A' configured with JPA with persistence.xml and working fine.
  Module 'B' has dependency with Module 'A' and has its own persistence.xml.</p>
  
  <p>When I try to use I get </p>
  
  <pre><code> IllegalStateException:Conflicting persistence unit definitions for name in
  </code></pre>
  
  <p>I'm building this test app with spring roo. Please shed a light on this. cheers</p>