Category: LocalContainerEntityManagerFactoryBean

LocalContainerEntityManagerFactoryBean, Hibernate and superflous tables created in wrong database

TL;DRHibernate's (3.2-3.4) JPA implementation will pick up hbm files on it's own when it should be looking only at persistence.xml, thus:- loading more entities that it should- loading the wrong entities- performing schema updates in the wrong databaseThis one annoyed me plenty and took a great deal of debugging to sort out.The settingMy spring application … Continue reading LocalContainerEntityManagerFactoryBean, Hibernate and superflous tables created in wrong database