一直在整合spring+hibernate
persistence
Xml代碼
<persistence xmlns=
xsi:schemaLocation=
<persistence
<provider>org
<class>MyClass</class>
<properties>
<property name=
<property name=
<property name=
<property name=
</properties>
</persistence
</persistence>
view plaincopy to clipboardprint?
<persistence xmlns=
xsi:schemaLocation=
<persistence
<provider>org
<class>MyClass</class>
<properties>
<property name=
<property name=
<property name=
<property name=
</properties>
</persistence
</persistence>
<persistence xmlns=
xsi:schemaLocation=
<persistence
<provider>org
<class>MyClass</class>
<properties>
<property name=
<property name=
<property name=
<property name=
</properties>
</persistence
</persistence>
applicationContext
Xml代碼
<?xml version=
<beans xmlns=
xmlns:aop=
xsi:schemaLocation=
<bean class=
<bean id=
<bean id=
<property name=
<value>com
</property>
<property name=
<value>jdbc:mysql://localhost:
</property>
<property name=
<value>########</value>
</property>
<property name=
<value>########</value>
</property>
</bean>
<!
<bean id=
<property name=
<property name=
<property name=
</bean>
<!
<bean id=
<property name=
<ref bean=
</property>
</bean>
<tx:annotation
</beans>
From:http://tw.wingwit.com/Article/program/Java/ky/201311/28409.html