类 OverrideConfiguration.OverrideMappings

    • 嵌套类概要

      • 从接口继承的嵌套类/接口 org.hibernate.cfg.Mappings

        org.hibernate.cfg.Mappings.PropertyReference
    • 构造器概要

      构造器 
      构造器 说明
      OverrideMappings()
      注册缺省的sequence生成器
    • 构造器详细资料

      • OverrideMappings

        public OverrideMappings()
        注册缺省的sequence生成器
    • 方法详细资料

      • 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)
        指定者:
        addClass 在接口中 org.hibernate.cfg.Mappings
        抛出:
        org.hibernate.DuplicateMappingException
      • addImport

        public void addImport​(String entityName,
                              String rename)
                       throws org.hibernate.DuplicateMappingException
        Duplicated entity name in sup/subclass situation will rise a DuplicateMappingException
        指定者:
        addImport 在接口中 org.hibernate.cfg.Mappings
        抛出:
        org.hibernate.DuplicateMappingException
      • addCollection

        public void addCollection​(org.hibernate.mapping.Collection collection)
                           throws org.hibernate.DuplicateMappingException
        Delay register collection,let class descide which owner will be winner.
        • Provide override collections with same rolename.
        • Delay register collection,register by addClass method
        指定者:
        addCollection 在接口中 org.hibernate.cfg.Mappings
        抛出:
        org.hibernate.DuplicateMappingException