hibernate
建立 GORM 和 整合Grails' Hibernate .
class Book {
String title
Date releaseDate
Author author
}
dialectDetector
- org.codehaus.groovy.grails.orm.hibernate.support.HibernateDialectDetectorFactoryBean 类的实例, 自动查找Hibernate查询语言( Dialect ).hibernateProperties
-Hibernate properties 的映射,传给 SessionFactory
lobHandlerDetector
- org.codehaus.groovy.grails.orm.hibernate.support.SpringLobHandlerDetectorFactoryBean 类的实例,自动查找Spring LobHandler . sessionFactory
- Hibernate SessionFactory 类的实例,作为 GORM 工厂.transactionManager
- Spring's org.springframework.orm.hibernate3.HibernateTransactionManager 类的实例.管理事务. persistenceInterceptor
-org.codehaus.groovy.grails.orm.hibernate.support.HibernatePersistenceContextInterceptor 类的实例,抽离对象,以便Grails 在没有GORM的情况下,控制层和视图层也可以使用.openSessionInViewInterceptor
- org.codehaus.groovy.grails.orm.hibernate.support.GrailsOpenSessionInViewFilter 类的实例,用来处理 Grails' ( Session )管理.