org.hibernate.cfg
Class AnnotationBinder
java.lang.Object
org.hibernate.cfg.AnnotationBinder
public final class AnnotationBinder
- extends Object
JSR 175 annotation binder
Will read the annotation from classes, apply the
principles of the EJB3 spec and produces the Hibernate
configuration-time metamodel (the classes in the mapping
package)
- Author:
- Emmanuel Bernard
Method Summary |
static void |
bindClass(Class clazzToProcess,
Map<Class,InheritanceState> inheritanceStatePerClass,
ExtendedMappings mappings)
Bind a class having JSR175 annotations
The subclasses have to be binded after its mother class |
static void |
bindPackage(String packageName,
ExtendedMappings mappings)
|
static Map<Class,InheritanceState> |
buildInheritanceStates(List<Class> orderedClasses)
|
static org.hibernate.mapping.Component |
fillComponent(PropertyHolder propertyHolder,
PropertyInferredData inferredData,
boolean propertyAnnotated,
String propertyAccessor,
boolean isNullable,
EntityBinder entityBinder,
boolean isIdentifierMapper,
Map<String,javax.persistence.Column[]> columnOverride,
ExtendedMappings mappings,
boolean isComponentEmbedded)
|
static boolean |
isDefault(Class clazz)
|
static boolean |
isDefault(String annotationString)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ANNOTATION_STRING_DEFAULT
public static final String ANNOTATION_STRING_DEFAULT
- See Also:
- Constant Field Values
bindPackage
public static void bindPackage(String packageName,
ExtendedMappings mappings)
bindClass
public static void bindClass(Class clazzToProcess,
Map<Class,InheritanceState> inheritanceStatePerClass,
ExtendedMappings mappings)
throws org.hibernate.MappingException
- Bind a class having JSR175 annotations
The subclasses have to be binded after its mother class
- Throws:
org.hibernate.MappingException
fillComponent
public static org.hibernate.mapping.Component fillComponent(PropertyHolder propertyHolder,
PropertyInferredData inferredData,
boolean propertyAnnotated,
String propertyAccessor,
boolean isNullable,
EntityBinder entityBinder,
boolean isIdentifierMapper,
Map<String,javax.persistence.Column[]> columnOverride,
ExtendedMappings mappings,
boolean isComponentEmbedded)
isDefault
public static boolean isDefault(String annotationString)
isDefault
public static boolean isDefault(Class clazz)
buildInheritanceStates
public static Map<Class,InheritanceState> buildInheritanceStates(List<Class> orderedClasses)