I would like to set a property polymorphism="explicit"for several sleep mapping classes. is it possible to override the default value implicitso that i don't need to set explicitto multiple classes?
<class name="xxxxx" table="XXXXX" polymorphism="explicit">
I use hibernate mapping of xml files (without annotations or JPA), and it was loaded by Spring as follows:
<bean id="xxxsessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="xxxDataSource"/>
</property>
<property name="mappingResources">
<list>
<value>xxx.hbm.xml</value>
--------
--------
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.OracleDialect</prop>
----
----
</props>
</property>
</bean>
Thank.
source
share