Class OverrideConfiguration.OverrideMappings
- java.lang.Object
-
- org.beangle.orm.hibernate.internal.OverrideConfiguration.OverrideMappings
-
- All Implemented Interfaces:
Serializable,org.hibernate.cfg.ExtendedMappings,org.hibernate.cfg.Mappings
- Enclosing class:
- OverrideConfiguration
protected class OverrideConfiguration.OverrideMappings extends Object
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OverrideMappings()注册缺省的sequence生成器
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddClass(org.hibernate.mapping.PersistentClass pClass)First change jpaName to entityName Duplicate register persistent class,hack hibernate(ToOneFkSecondPass.isInPrimaryKey)voidaddCollection(org.hibernate.mapping.Collection collection)Delay register collection,let class descide which owner will be winner.voidaddImport(String entityName, String rename)Duplicated entity name in sup/subclass situation will rise aDuplicateMappingException
-
-
-
Method Detail
-
addClass
public void addClass(org.hibernate.mapping.PersistentClass pClass) throws org.hibernate.DuplicateMappingException- First change jpaName to entityName
- Duplicate register persistent class,hack hibernate(ToOneFkSecondPass.isInPrimaryKey)
- Specified by:
addClassin interfaceorg.hibernate.cfg.Mappings- Throws:
org.hibernate.DuplicateMappingException
-
addImport
public void addImport(String entityName, String rename) throws org.hibernate.DuplicateMappingException
Duplicated entity name in sup/subclass situation will rise aDuplicateMappingException- Specified by:
addImportin interfaceorg.hibernate.cfg.Mappings- Throws:
org.hibernate.DuplicateMappingException
-
addCollection
public void addCollection(org.hibernate.mapping.Collection collection) throws org.hibernate.DuplicateMappingExceptionDelay register collection,let class descide which owner will be winner.- Provide override collections with same rolename.
- Delay register collection,register by addClass method
- Specified by:
addCollectionin interfaceorg.hibernate.cfg.Mappings- Throws:
org.hibernate.DuplicateMappingException
-
-