类org.hibernate.persister.collection.OneToManyPersister源码实例Demo

下面列出了怎么用org.hibernate.persister.collection.OneToManyPersister的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: cacheonix-core   文件: PersisterFactory.java
public static CollectionPersister createCollectionPersister(Configuration cfg, Collection model, CacheConcurrencyStrategy cache, SessionFactoryImplementor factory)
throws HibernateException {
	Class persisterClass = model.getCollectionPersisterClass();
	if(persisterClass==null) { // default behavior
		return model.isOneToMany() ?
			(CollectionPersister) new OneToManyPersister(model, cache, cfg, factory) :
			(CollectionPersister) new BasicCollectionPersister(model, cache, cfg, factory);
	}
	else {
		return create(persisterClass, cfg, model, cache, factory);
	}

}
 
源代码2 项目: lams   文件: StandardPersisterClassResolver.java
private Class<OneToManyPersister> oneToManyPersister() {
	return OneToManyPersister.class;
}
 
 类所在包
 类方法
 同包方法