该方法是处理没有报错信息的情况的,有报错信息好办,搜索报错信息来具体分析处理就行。这是未自动生成字段的处理方式,未自动生成表同理。
${jdbc.username}
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="dataSource" ref="dataSource"/>
<property name="jpaVendorAdapter" ref="hibernateJpaVendorAdapter"/>
<property name="packagesToScan">
<list>
<value>com.boeetech.emcvalue>
<value>com.boeetech.activitivalue>
<value>com.boeetech.activiti.demo.activiti.entityvalue>
list>
property>
<property name="jpaProperties">
<props>
<prop key="hibernate.ejb.naming_strategy">org.hibernate.cfg.ImprovedNamingStrategyprop>
<prop key="hibernate.hbm2ddl.auto">updateprop>
<prop key="hibernate.show_sql"> true prop>
<prop key="javax.persistence.validation.mode">noneprop>
<prop key="hibernate.default_schema">${jdbc.username}prop>
props>
property>
bean>