|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hibernate.cfg.Configuration
org.codehaus.groovy.grails.orm.hibernate.cfg.GrailsAnnotationConfiguration
public class GrailsAnnotationConfiguration
Allows configuring Grails' hibernate support to work in conjuntion with Hibernate's annotation support.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.hibernate.cfg.Configuration |
|---|
org.hibernate.cfg.Configuration.MappingsImpl, org.hibernate.cfg.Configuration.MetadataSourceQueue |
| Field Summary |
|---|
| Fields inherited from class org.hibernate.cfg.Configuration |
|---|
ARTEFACT_PROCESSING_ORDER, auxiliaryDatabaseObjects, classes, collections, columnNameBindingPerTable, DEFAULT_ARTEFACT_PROCESSING_ORDER, DEFAULT_CACHE_CONCURRENCY_STRATEGY, extendsQueue, fetchProfiles, filterDefinitions, imports, metadataSourceQueue, namedQueries, namedSqlQueries, namingStrategy, propertyReferences, secondPasses, settingsFactory, sqlFunctions, sqlResultSetMappings, tableNameBinding, tables, typeDefs, USE_NEW_ID_GENERATOR_MAPPINGS, xmlHelper |
| Constructor Summary | |
|---|---|
GrailsAnnotationConfiguration()
|
|
| Method Summary | |
|---|---|
GrailsDomainConfiguration |
addDomainClass(org.codehaus.groovy.grails.commons.GrailsDomainClass domainClass)
Adds a domain class to the configuration. |
org.hibernate.SessionFactory |
buildSessionFactory()
|
protected void |
secondPassCompile()
Overrides the default behaviour to including binding of Grails domain classes. |
void |
setDataSourceName(java.lang.String name)
The Spring bean name of the DataSource. |
void |
setGrailsApplication(org.codehaus.groovy.grails.commons.GrailsApplication application)
Sets the grails application instance. |
void |
setSessionFactoryBeanName(java.lang.String name)
The Spring bean name of the SessionFactory. |
| Methods inherited from class org.hibernate.cfg.Configuration |
|---|
add, addAnnotatedClass, addAuxiliaryDatabaseObject, addCacheableFile, addCacheableFile, addCacheableFileStrictly, addClass, addDirectory, addDocument, addFetchProfile, addFile, addFile, addFilterDefinition, addInputStream, addJar, addPackage, addProperties, addResource, addResource, addSqlFunction, addURL, addXML, buildMapping, buildMappings, buildSettings, buildSettings, configure, configure, configure, configure, configure, createMappings, doConfigure, doConfigure, findPossibleExtends, generateDropSchemaScript, generateSchemaCreationScript, generateSchemaUpdateScript, getClassMapping, getClassMappings, getCollectionMapping, getCollectionMappings, getConfigurationInputStream, getEntityNotFoundDelegate, getEntityResolver, getEntityTuplizerFactory, getEventListeners, getFilterDefinitions, getIdentifierGeneratorFactory, getImports, getInterceptor, getMappedSuperclassMappings, getNamedQueries, getNamedSQLQueries, getNamingStrategy, getPersisterClassProvider, getProperties, getProperty, getReflectionManager, getSessionFactoryObserver, getSqlFunctions, getSqlResultSetMappings, getTableMappings, getTypeResolver, iterateFetchProfiles, mergeProperties, registerTypeOverride, registerTypeOverride, registerTypeOverride, reset, secondPassCompileForeignKeys, setCacheConcurrencyStrategy, setCacheConcurrencyStrategy, setCacheConcurrencyStrategy, setCollectionCacheConcurrencyStrategy, setCollectionCacheConcurrencyStrategy, setEntityNotFoundDelegate, setEntityResolver, setInterceptor, setListener, setListener, setListeners, setListeners, setNamingStrategy, setPersisterClassProvider, setPrecedence, setProperties, setProperty, setSessionFactoryObserver, validateSchema |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GrailsAnnotationConfiguration()
| Method Detail |
|---|
public GrailsDomainConfiguration addDomainClass(org.codehaus.groovy.grails.commons.GrailsDomainClass domainClass)
GrailsDomainConfiguration
addDomainClass in interface GrailsDomainConfigurationpublic void setGrailsApplication(org.codehaus.groovy.grails.commons.GrailsApplication application)
GrailsDomainConfiguration
setGrailsApplication in interface GrailsDomainConfigurationapplication - The grails application to use or null if none.public void setSessionFactoryBeanName(java.lang.String name)
GrailsDomainConfiguration
setSessionFactoryBeanName in interface GrailsDomainConfigurationname - the namepublic void setDataSourceName(java.lang.String name)
GrailsDomainConfiguration
setDataSourceName in interface GrailsDomainConfigurationname - the name
public org.hibernate.SessionFactory buildSessionFactory()
throws org.hibernate.HibernateException
buildSessionFactory in class org.hibernate.cfg.Configurationorg.hibernate.HibernateException
protected void secondPassCompile()
throws org.hibernate.MappingException
secondPassCompile in class org.hibernate.cfg.Configurationorg.hibernate.MappingException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||