org.hibernate.collection.internal.PersistentBag Java Examples
The following examples show how to use
org.hibernate.collection.internal.PersistentBag.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CollectionConverter.java From onedev with MIT License | 4 votes |
@Override public boolean canConvert(@SuppressWarnings("rawtypes") Class clazz) { return super.canConvert(clazz) || clazz == PersistentBag.class; }
Example #2
Source File: BagType.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public PersistentCollection instantiate(SharedSessionContractImplementor session, CollectionPersister persister, Serializable key) throws HibernateException { return new PersistentBag( session ); }
Example #3
Source File: BagType.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public PersistentCollection wrap(SharedSessionContractImplementor session, Object collection) { return new PersistentBag( session, (Collection) collection ); }
Example #4
Source File: HibernateCollectionConverterImpl.java From yes-cart with Apache License 2.0 | 4 votes |
@Override public boolean canConvert(final Class type) { return PersistentBag.class == type || PersistentList.class == type || PersistentSet.class == type; }