...
NOTE: This application currently uses an embedded HSQLDB so no external database is required. For production deployment, an external enterprise database is recommended. The JPA provider should automatically create any required schemas.in-memory dao. For production deployments it should be replaced with the JPA-provided one.
No Format |
---|
<!-- This is the EntityManagerFactory configuration for Hibernate -->
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="dataSource" ref="dataSource"/>
<property name="jpaVendorAdapter">
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
<property name="generateDdl" value="true"/>
<property name="showSql" value="true" />
</bean>
</property>
</bean>
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
<property name="entityManagerFactory" ref="entityManagerFactory"/>
</bean>
<tx:annotation-driven transaction-manager="transactionManager"/>
<bean
id="dataSource"
class="com.mchange.v2.c3p0.ComboPooledDataSource"
p:driverClass="org.hsqldb.jdbcDriver"
p:jdbcUrl-ref="database"
p:password=""
p:user="sa" />
|