Revert "Introduce (Annotation)SessionFactoryBuilder types"
This commit and the several before it back out the SessionFactoryBuilder and AnnotationSessionFactoryBuilder types recently introduced in 3.1 M2. This is in light of the impending release of Hibernate 4.0 GA and our own support for it the new org.springframework.orm.hibernate4 package (not yet committed). This new package will have a similar, but far simpler, arrangement of a single LocalSessionFactoryBuilder and LocalSessionFactoryBean pair. Hibernate 3.x support will remain largely as-is, however the HibernateTransactionManager introduced with SPR-8076 will remain. This reverts commit 9e8259198f07e495fd32359c0e0c197bb79a2ca0. Issue: SPR-8066, SPR-7936, SPR-8076, SPR-8098, SPR-8096, SPR-7387
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
|
||||
|
||||
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
|
||||
<property name="annotatedClasses" value="org.springframework.orm.hibernate3.scannable.Foo"/>
|
||||
<property name="dataSource" ref="dataSource"/>
|
||||
<property name="schemaUpdate" value="true"/>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
@@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
|
||||
|
||||
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
|
||||
<!--<property name="annotatedClasses" value="org.springframework.orm.hibernate3.scannable.Foo"/>-->
|
||||
<property name="mappingLocations" value="classpath:org/springframework/orm/hibernate3/scannable/FooMapping.hbm.xml"/>
|
||||
<property name="dataSource" ref="dataSource"/>
|
||||
<property name="schemaUpdate" value="true"/>
|
||||
<property name="hibernateProperties">
|
||||
<value>
|
||||
hibernate.dialect=org.hibernate.dialect.HSQLDialect
|
||||
</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
@@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN"
|
||||
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
|
||||
|
||||
<hibernate-mapping>
|
||||
|
||||
<class name="org.springframework.orm.hibernate3.scannable.Foo" table="foo">
|
||||
<id name="id" column="id" access="field"/>
|
||||
<property name="name" column="name" />
|
||||
</class>
|
||||
|
||||
</hibernate-mapping>
|
||||
Reference in New Issue
Block a user