本文整理了Java中org.hibernate.mapping.List.setCollectionTable()
方法的一些代码示例,展示了List.setCollectionTable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。List.setCollectionTable()
方法的具体详情如下:
包路径:org.hibernate.mapping.List
类名称:List
方法名:setCollectionTable
暂无
代码示例来源:origin: org.grails/grails-hibernate
@Override
public Collection create(GrailsDomainClassProperty property, PersistentClass owner,
String path, Mappings mappings, String sessionFactoryBeanName) throws MappingException {
org.hibernate.mapping.List coll = new org.hibernate.mapping.List(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 {
org.hibernate.mapping.List coll = new org.hibernate.mapping.List(mappings, owner);
coll.setCollectionTable(owner.getTable());
coll.setTypeName(getTypeName(property));
binder.bindCollection(property, coll, owner, mappings, path, sessionFactoryBeanName);
return coll;
}
};
内容来源于网络,如有侵权,请联系作者删除!