benim uygulamaContext.xml içinde, ben nasıl xml POJO. dizini xml oluşturmak için gerekmeden dizin dosyasına nasıl eşlenir?bahar + hibernate eşleme sınıfı olmadan xml
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="mappingResources">
<list>
<value>com/custompackage/custom/spi/hibernate3/HibernateCurrentStep.hbm.xml</value>
<value>com/custompackage/custom/spi/hibernate3/HibernateHistoryStep.hbm.xml</value>
<value>com/custompackage/custom/spi/hibernate3/HibernatecustomEntry.hbm.xml</value>
<value>user/custom/hibernate3/PropertySetItemImpl.hbm.xml</value>
<value>com/custompackage/user/provider/hibernate3/user/impl/HibernateGroupImpl.hbm.xml</value>
<value>com/custompackage/user/provider/hibernate3/user/impl/HibernateUserImpl.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
.....
</property>
<property name="dataSource">
<ref bean="dataSource" />
</property>
</bean>
Sınıf eşlemesini AnnotationSessionFactoryBean öğeme dönüştürmem gerekir? –
@JiayiZhou Ayrıntılı bilgi verebilir misiniz? Ne soruyorsanız onu almam. –
Varlığımdan birinde, OneToOne'un başka bir varlığa eşleştirdiği bir özellik ekledim. Çalışması için ilkbahar çerçeve xml yapılandırmasına ne eklemeliyim? Sorumluluğumun ayrıntılarını buradan kontrol edebilirsiniz: http://stackoverflow.com/questions/40956208/how-to-configure-hibernate-onetoone-mapping-using-spring-framework –