title: Hibernate can't instantiate id generator in Spring project with multiple data sources
body: <p>I have a Spring project using Hibernate with two data sources (db2 and sql-server).</p>
  
  <p>As soon as I add </p>
  
  <p><code>@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SOME_SEQ")</code></p>
  
  <p>to a column field in my entity class, I get a <code>BeanCreationException</code> when creating the sql-server <code>EntityManagerFactory</code> because <code>org.hibernate.dialect.SQLServerDialect</code> doesn't support sequences. The only place this entity is being used, though, is in a DAO that uses a db2 <code>EntityManagerFactory</code> which is using the appropriate dialect.</p>
  
  <p>What am I missing?</p>