Closed
Description
matthew inger opened SPR-885 and commented
There is currently no way to add a TypeDef instance to a LocalSessionFactory bean. I am including a patch which will allow the addition of TypeDef objects. There will be a "typeDefinitions"
property on the LocalSessionFactoryBean:
public void setTypeDefinitions(TypeDefinitionBean typeDefinitions[]);
The "TypeDefinitionBean" class contains the name, type class, and parameters for the type definition:
<bean class="org.springframework.orm.hibernate3.TypeDefinitionBean">
<property name="name"><value>myType</value></property>
<property name="typeClass"><value>MyTypeFQCN</value></property>
</bean>
Affects: 1.2 RC2
Attachments:
- LocalSessionFactoryBean.java.diff (2.30 kB)
- LocalSessionFactoryBean.java.diff (2.30 kB)
- LocalSessionFactoryBean.java.diff (2.31 kB)
- TypeDefinitionBean.java (1.76 kB)
- TypeDefinitionBean.java (1.76 kB)