Skip to content

No way to add hibernate type definitions to a LocalSessionFactoryBean [SPR-885] #5612

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions