Skip to main content

What maven dependency need to have Class LocalContainerEntityManagerFactoryBean?



In my project class LocalContainerEntityManagerFactoryBean not found. I don't understand why? In other simple project with this class all works fine.







<bean id="entityManagerFactory"

class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">

<property name="persistenceUnitName" value="simpleTest" />

<property name="dataSource" ref="dataSource" />

<property name="jpaVendorAdapter">

<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">

<property name="showSql" value="true" />

<property name="generateDdl" value="true" />

<property name="databasePlatform" value="org.hibernate.dialect.H2Dialect" />

</bean>

</property>

</bean>




Comments

  1. I use http://www.jarvana.com to look up maven dependencies.

    I guess that you need spring-orm:

    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-orm</artifactId>
    <version>3.1.0.RELEASE</version>
    </dependency>

    ReplyDelete

Post a Comment

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?