Package org.hibernate.testing.orm.domain
Class AbstractDomainModelDescriptor
- java.lang.Object
-
- org.hibernate.testing.orm.domain.AbstractDomainModelDescriptor
-
- All Implemented Interfaces:
DomainModelDescriptor
- Direct Known Subclasses:
AnimalDomainModel
,ContactsDomainModel
,GambitDomainModel
,HelpDeskDomainModel
,RetailDomainModel
,UserguideDomainModel
public abstract class AbstractDomainModelDescriptor extends Object implements DomainModelDescriptor
Convenience base class test domain models based on annotated classes
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractDomainModelDescriptor(Class... annotatedClasses)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyDomainModel(MetadataSources sources)
Apply the model classes to the given MetadataSourcesClass[]
getAnnotatedClasses()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.testing.orm.domain.DomainModelDescriptor
getMappingFeaturesUsed, getNamespace
-
-
-
-
Constructor Detail
-
AbstractDomainModelDescriptor
protected AbstractDomainModelDescriptor(Class... annotatedClasses)
-
-
Method Detail
-
getAnnotatedClasses
public Class[] getAnnotatedClasses()
- Specified by:
getAnnotatedClasses
in interfaceDomainModelDescriptor
-
applyDomainModel
public void applyDomainModel(MetadataSources sources)
Description copied from interface:DomainModelDescriptor
Apply the model classes to the given MetadataSources- Specified by:
applyDomainModel
in interfaceDomainModelDescriptor
-
-