📄 bagtype.java
字号:
//$Id: BagType.java,v 1.9.2.1 2004/01/26 04:57:09 oneovthafew Exp $package net.sf.hibernate.type;import net.sf.hibernate.HibernateException;import net.sf.hibernate.collection.Bag;import net.sf.hibernate.collection.CollectionPersister;import net.sf.hibernate.collection.PersistentCollection;import net.sf.hibernate.engine.SessionImplementor;public class BagType extends PersistentCollectionType { public BagType(String role) { super(role); } public PersistentCollection instantiate( SessionImplementor session, CollectionPersister persister) throws HibernateException { return new Bag(session); } public Class getReturnedClass() { return java.util.Collection.class; } public PersistentCollection wrap(SessionImplementor session, Object collection) { return new Bag( session, (java.util.Collection) collection ); } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -