我想将polymorphism="explicit"
属性设置为多个hibernate映射类。是否可以重写默认的implicit
值,以便我不需要在多个类中设置explicit
?更改Hibernate中的默认多态性
<class name="xxxxx" table="XXXXX" polymorphism="explicit">
我使用Hibernate映射XML文件(没有说明或JPA),它是由弹簧加载如下,
<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>
谢谢。