org.hibernate.tool.hbm2x.pojo
Class EntityPOJOClass
java.lang.Object
org.hibernate.tool.hbm2x.pojo.BasicPOJOClass
org.hibernate.tool.hbm2x.pojo.EntityPOJOClass
- All Implemented Interfaces:
- MetaAttributeConstants, ImportContext, POJOClass
public class EntityPOJOClass
- extends BasicPOJOClass
Methods inherited from class org.hibernate.tool.hbm2x.pojo.BasicPOJOClass |
appendCommonColumnInfo, beanCapitalize, generateAnnColumnAnnotation, generateBasicAnnotation, generateEquals, generateEquals, generateHashCode, generateImports, getClassJavaDoc, getClassModifiers, getCollectionNameFor, getDeclarationName, getDeclarationType, getEqualsHashCodePropertiesIterator, getExtendsDeclaration, getExtraClassCode, getFieldDescription, getFieldInitialization, getFieldJavaDoc, getFieldModifiers, getGeneratedClassName, getGetterSignature, getImplementsDeclaration, getJavaTypeName, getMetaAsBool, getMetaAsBool, getMetaAsString, getMetaAsString, getMetaAttribAsBool, getPackageDeclaration, getPackageDeclaration, getPackageName, getPropertyGetModifiers, getPropertyName, getPropertySetModifiers, getQualifiedDeclarationName, getShortName, getToStringPropertiesIterator, hasFieldInitializor, hasFieldJavaDoc, hasMetaAttribute, hasMetaAttribute, importType, init, isComponent, isInterface, isRequiredInConstructor, needsEqualsHashCode, needsFullConstructor, needsMinimalConstructor, needsToString, qualifyInnerClass, staticImport |
EntityPOJOClass
public EntityPOJOClass(org.hibernate.mapping.PersistentClass clazz,
Cfg2JavaTool cfg)
getMappedClassName
protected String getMappedClassName()
- Specified by:
getMappedClassName
in class BasicPOJOClass
getExtends
public String getExtends()
- Specified by:
getExtends
in interface POJOClass
- Specified by:
getExtends
in class BasicPOJOClass
- Returns:
- whatever the class (or interface) extends (null if it does not extend anything)
getImplements
public String getImplements()
- Specified by:
getImplements
in interface POJOClass
- Specified by:
getImplements
in class BasicPOJOClass
getAllPropertiesIterator
public Iterator getAllPropertiesIterator()
- Description copied from class:
BasicPOJOClass
- returns the properties that would be visible on this entity as a pojo. This does not return *all* properties since hibernate has certain properties that are only relevant in context of persistence.
- Specified by:
getAllPropertiesIterator
in interface POJOClass
- Specified by:
getAllPropertiesIterator
in class BasicPOJOClass
getAllPropertiesIterator
public Iterator getAllPropertiesIterator(org.hibernate.mapping.PersistentClass pc)
isComponent
public boolean isComponent()
hasIdentifierProperty
public boolean hasIdentifierProperty()
getIdentifierProperty
public org.hibernate.mapping.Property getIdentifierProperty()
generateAnnTableUniqueConstraint
public String generateAnnTableUniqueConstraint()
generateAnnTableUniqueConstraint
protected String generateAnnTableUniqueConstraint(org.hibernate.mapping.Table table)
generateAnnIdGenerator
public String generateAnnIdGenerator()
generateJoinColumnsAnnotation
public String generateJoinColumnsAnnotation(org.hibernate.mapping.Property property,
org.hibernate.cfg.Configuration cfg)
getCascadeTypes
public String[] getCascadeTypes(org.hibernate.mapping.Property property)
generateManyToOneAnnotation
public String generateManyToOneAnnotation(org.hibernate.mapping.Property property)
isSharedPkBasedOneToOne
public boolean isSharedPkBasedOneToOne(org.hibernate.mapping.OneToOne oneToOne)
generateOneToOneAnnotation
public String generateOneToOneAnnotation(org.hibernate.mapping.Property property,
org.hibernate.cfg.Configuration cfg)
getHibernateCascadeTypeAnnotation
public String getHibernateCascadeTypeAnnotation(org.hibernate.mapping.Property property)
getFetchType
public String getFetchType(org.hibernate.mapping.Property property)
getDecoratedObject
public Object getDecoratedObject()
generateCollectionAnnotation
public String generateCollectionAnnotation(org.hibernate.mapping.Property property,
org.hibernate.cfg.Configuration cfg)
isSubclass
public boolean isSubclass()
getPropertyClosureForFullConstructor
public List getPropertyClosureForFullConstructor()
getPropertyClosureForFullConstructor
protected List getPropertyClosureForFullConstructor(org.hibernate.mapping.PersistentClass pc)
getPropertiesForFullConstructor
public List getPropertiesForFullConstructor()
getPropertiesForFullConstructor
protected List getPropertiesForFullConstructor(org.hibernate.mapping.PersistentClass pc)
getPropertyClosureForSuperclassFullConstructor
public List getPropertyClosureForSuperclassFullConstructor()
getPropertyClosureForSuperclassFullConstructor
public List getPropertyClosureForSuperclassFullConstructor(org.hibernate.mapping.PersistentClass pc)
getPropertyClosureForMinimalConstructor
public List getPropertyClosureForMinimalConstructor()
getPropertyClosureForMinimalConstructor
protected List getPropertyClosureForMinimalConstructor(org.hibernate.mapping.PersistentClass pc)
getPropertiesForMinimalConstructor
public List getPropertiesForMinimalConstructor()
getPropertiesForMinimalConstructor
protected List getPropertiesForMinimalConstructor(org.hibernate.mapping.PersistentClass pc)
isAssignedIdentifier
protected boolean isAssignedIdentifier(org.hibernate.mapping.PersistentClass pc,
org.hibernate.mapping.Property property)
getPropertyClosureForSuperclassMinimalConstructor
public List getPropertyClosureForSuperclassMinimalConstructor()
getPropertyClosureForSuperclassMinConstructor
protected List getPropertyClosureForSuperclassMinConstructor(org.hibernate.mapping.PersistentClass pc)
getSuperClass
public POJOClass getSuperClass()
toString
public String toString()
- Overrides:
toString
in class Object
hasVersionProperty
public boolean hasVersionProperty()
getVersionProperty
public org.hibernate.mapping.Property getVersionProperty()