org.hibernate.cfg
Class InheritanceState

java.lang.Object
  extended by org.hibernate.cfg.InheritanceState

public class InheritanceState
extends Object

Some extra data to the inheritance position of a class

Author:
Emmanuel Bernard

Field Summary
 String accessType
          only defined on embedded superclasses
 XClass clazz
           
 boolean hasParents
          a mother entity is available
 boolean hasSons
          has son either mappedsuperclass son or entity son
 boolean isEmbeddableSuperclass
           
 Boolean isPropertyAnnotated
           
 javax.persistence.InheritanceType type
           
 
Constructor Summary
InheritanceState(XClass clazz)
           
 
Method Summary
static InheritanceState getSuperclassInheritanceState(XClass clazz, Map<XClass,InheritanceState> states)
           
static InheritanceState getSuperEntityInheritanceState(XClass clazz, Map<XClass,InheritanceState> states)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clazz

public XClass clazz

hasSons

public boolean hasSons
has son either mappedsuperclass son or entity son


hasParents

public boolean hasParents
a mother entity is available


type

public javax.persistence.InheritanceType type

isEmbeddableSuperclass

public boolean isEmbeddableSuperclass

accessType

public String accessType
only defined on embedded superclasses


isPropertyAnnotated

public Boolean isPropertyAnnotated
Constructor Detail

InheritanceState

public InheritanceState(XClass clazz)
Method Detail

getSuperEntityInheritanceState

public static InheritanceState getSuperEntityInheritanceState(XClass clazz,
                                                              Map<XClass,InheritanceState> states)

getSuperclassInheritanceState

public static InheritanceState getSuperclassInheritanceState(XClass clazz,
                                                             Map<XClass,InheritanceState> states)