I find the tapernate configuration is: <contribution configuration-id="spring.hibernate3.Configuration"> <!-- Loads a Hibernate configuration file --> <configuration-file>hibernate.cfg.xml</configuration-file>
<!-- Adds a mapping file --> <mapping-file>/com/myco/domain/MyMappedEntity.hbm.xml</mapping-file> <!-- Adds a mapping file via a URL --> <url>http://www.myco.com/mapping-file.hbm.xml</url> <!-- Sets a Hibernate configuration property --> <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/> <!-- Adds a mapped class (with accompanying .hbm.xml file) --> <class>com.myco.domain.MyMappedEntityClass</class> <!-- Adds an annotated class (requires hibernate-annotations on classpath) --> <annotated-class>com.myco.domain.MyAnnotatedEntityClass</annotated-class> <!-- Adds an annotated package (requires hibernate-annotations on classpath) --> <package>com.myco.domain</package> </contribution> But my applicatio config hibernate in spring.How to integrate the spring configuration? Thanks. Jun Tsai -- Welcome to China Java Users Group(CNJUG). http://cnjug.dev.java.net