protected class OverrideConfiguration.OverrideMappings extends Object
| Constructor and Description |
|---|
OverrideMappings()
注册缺省的sequence生成器
|
| Modifier and Type | Method and Description |
|---|---|
void |
addClass(org.hibernate.mapping.PersistentClass pClass)
First change jpaName to entityName
Duplicate register persistent class,hack hibernate(ToOneFkSecondPass.isInPrimaryKey)
|
void |
addCollection(org.hibernate.mapping.Collection collection)
Delay register collection,let class descide which owner will be winner.
|
void |
addImport(String entityName,
String rename)
Duplicated entity name in sup/subclass situation will rise a
DuplicateMappingException |
public void addClass(org.hibernate.mapping.PersistentClass pClass)
throws org.hibernate.DuplicateMappingException
addClass in interface org.hibernate.cfg.Mappingsorg.hibernate.DuplicateMappingExceptionpublic void addImport(String entityName, String rename) throws org.hibernate.DuplicateMappingException
DuplicateMappingExceptionaddImport in interface org.hibernate.cfg.Mappingsorg.hibernate.DuplicateMappingExceptionpublic void addCollection(org.hibernate.mapping.Collection collection)
throws org.hibernate.DuplicateMappingException
addCollection in interface org.hibernate.cfg.Mappingsorg.hibernate.DuplicateMappingExceptionCopyright © 2005–2016 The Beangle Software Group. All rights reserved.