org.hibernate.mapping.Bag.setCollectionTable()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(103)

本文整理了Java中org.hibernate.mapping.Bag.setCollectionTable()方法的一些代码示例,展示了Bag.setCollectionTable()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bag.setCollectionTable()方法的具体详情如下:
包路径:org.hibernate.mapping.Bag
类名称:Bag
方法名:setCollectionTable

Bag.setCollectionTable介绍

暂无

代码示例

代码示例来源:origin: org.grails/grails-hibernate

@Override
  public Collection create(GrailsDomainClassProperty property, PersistentClass owner,
      String path, Mappings mappings, String sessionFactoryBeanName) throws MappingException {
    Bag coll = new Bag(mappings, owner);
    coll.setCollectionTable(owner.getTable());
    bindCollection(property, coll, owner, mappings, path, sessionFactoryBeanName);
    return coll;
  }
};

代码示例来源:origin: org.grails/grails-datastore-gorm-hibernate-core

@Override
  public Collection create(ToMany property, PersistentClass owner,
               String path, Mappings mappings, String sessionFactoryBeanName) throws MappingException {
    Bag coll = new Bag(mappings, owner);
    coll.setCollectionTable(owner.getTable());
    coll.setTypeName(getTypeName(property));
    binder.bindCollection(property, coll, owner, mappings, path, sessionFactoryBeanName);
    return coll;
  }
};

代码示例来源:origin: com.manydesigns/portofino-database

set.setCollectionTable(clazzMany.getTable());
OneToMany oneToMany = new OneToMany(mappings, set.getOwner());
set.setElement(oneToMany);

代码示例来源:origin: ManyDesigns/Portofino

set.setCollectionTable(clazzMany.getTable());
OneToMany oneToMany = new OneToMany(mappings, set.getOwner());
set.setElement(oneToMany);

相关文章