Java 类org.hibernate.persister.collection.OneToManyPersister 实例源码
项目: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);
}
}
项目:lams
文件:StandardPersisterClassResolver.java
private Class<OneToManyPersister> oneToManyPersister() {
return OneToManyPersister.class;
}