|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.cfg.Configuration org.hibernate.cfg.AnnotationConfiguration 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
Field Summary |
---|
Fields inherited from class org.hibernate.cfg.AnnotationConfiguration |
---|
ARTEFACT, DEFAULT_PRECEDENCE |
Fields inherited from class org.hibernate.cfg.Configuration |
---|
auxiliaryDatabaseObjects, classes, collections, columnNameBindingPerTable, extendsQueue, filterDefinitions, imports, namedQueries, namedSqlQueries, namingStrategy, propertyReferences, secondPasses, settingsFactory, sqlFunctions, sqlResultSetMappings, tableNameBinding, tables, typeDefs, xmlHelper |
Constructor Summary | |
---|---|
GrailsAnnotationConfiguration()
|
Method Summary | |
---|---|
GrailsDomainConfiguration |
addDomainClass(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 |
setGrailsApplication(GrailsApplication application)
Sets the grails application instance |
Methods inherited from class org.hibernate.cfg.AnnotationConfiguration |
---|
add, addAnnotatedClass, addCacheableFile, addCacheableFile, addClass, addDirectory, addDocument, addFile, addFile, addInputStream, addJar, addPackage, addProperties, addResource, addResource, addURL, addXML, configure, configure, configure, configure, configure, createExtendedMappings, doConfigure, doConfigure, getReflectionManager, mergeProperties, orderAndFillHierarchy, parseMappingElement, reset, setCacheConcurrencyStrategy, setCacheConcurrencyStrategy, setCollectionCacheConcurrencyStrategy, setCollectionCacheConcurrencyStrategy, setInterceptor, setNamingStrategy, setPrecedence, setProperties, setProperty |
Methods inherited from class org.hibernate.cfg.Configuration |
---|
addAuxiliaryDatabaseObject, addFilterDefinition, addSqlFunction, buildMapping, buildMappings, buildSettings, buildSettings, createMappings, findPossibleExtends, generateDropSchemaScript, generateSchemaCreationScript, generateSchemaUpdateScript, getClassMapping, getClassMappings, getCollectionMapping, getCollectionMappings, getConfigurationInputStream, getEntityNotFoundDelegate, getEntityResolver, getEventListeners, getFilterDefinitions, getImports, getInterceptor, getNamedQueries, getNamedSQLQueries, getNamingStrategy, getProperties, getProperty, getSessionFactoryObserver, getSqlFunctions, getSqlResultSetMappings, getTableMappings, secondPassCompileForeignKeys, setCacheConcurrencyStrategy, setEntityNotFoundDelegate, setEntityResolver, setListener, setListener, setListeners, setListeners, 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(GrailsDomainClass domainClass)
GrailsDomainConfiguration
addDomainClass
in interface GrailsDomainConfiguration
public void setGrailsApplication(GrailsApplication application)
GrailsDomainConfiguration
setGrailsApplication
in interface GrailsDomainConfiguration
application
- The grails application to use or null if none.public org.hibernate.SessionFactory buildSessionFactory() throws org.hibernate.HibernateException
buildSessionFactory
in class org.hibernate.cfg.AnnotationConfiguration
org.hibernate.HibernateException
protected void secondPassCompile() throws org.hibernate.MappingException
secondPassCompile
in class org.hibernate.cfg.AnnotationConfiguration
org.hibernate.MappingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |