title: Custom entities do not load within a Spring Cloud Dataflow Server
body: <p>Once I <strong>@EnableDataFlowServer</strong> my SpringBoot application, my own custom entities do not load.    (I get the 'type not managed' exception which occurs when JPA isn't finding your entities).</p>
  
  <p>These entities are found within another Spring module that I import, like</p>
  
  <pre><code>@Import({MyDomainsModule.class})
  </code></pre>
  
  <p>I'm using 2.0.0.m2 of Spring Cloud DataFlow. </p>
  
  <p>Some debugging I've done:</p>
  
  <p>If I add this to my Spring Boot application main class:</p>
  
  <pre><code>@EntityScan({
  "com.company.mydomain.entities"
  })
  </code></pre>
  
  <p>Then my entities start to load as usual, but then Spring DataFlow breaks.  For example, any time I try to load the UI, I'll get:</p>
  
  <pre><code> |ne.jdbc.spi.SqlExceptionHelper|  Table 'dataflow.appregistration' doesn't exist 
  </code></pre>
  
  <p>That makes me thinking by simply adding the EntityScan, I broke some naming strategy since the actual name of the table is of course <code>app_registration</code></p>
  
  <p>I think this is mostly a 'how do I do multiple locations of JPA-based code in one project', rather than a Spring Cloud DataFlow question.  But knowing the fix might require a better understanding of how SCDF. I've checked out the project and reading up both Spring Boot and how SCDF configures itself.  </p>
  
  <p>Any help is greatly appreciated!</p>