org.hibernate.collection.PersistentMap Java Examples
The following examples show how to use
org.hibernate.collection.PersistentMap.
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: MapType.java From cacheonix-core with GNU Lesser General Public License v2.1 | 5 votes |
public PersistentCollection instantiate(SessionImplementor session, CollectionPersister persister, Serializable key) { if ( session.getEntityMode()==EntityMode.DOM4J ) { return new PersistentMapElementHolder(session, persister, key); } else { return new PersistentMap(session); } }
Example #2
Source File: MapType.java From cacheonix-core with GNU Lesser General Public License v2.1 | 5 votes |
public PersistentCollection wrap(SessionImplementor session, Object collection) { if ( session.getEntityMode()==EntityMode.DOM4J ) { return new PersistentMapElementHolder( session, (Element) collection ); } else { return new PersistentMap( session, (java.util.Map) collection ); } }
Example #3
Source File: HibernateMapper.java From projectforge-webapp with GNU General Public License v3.0 | 5 votes |
public void init() { collectionMap.put(PersistentBag.class, ArrayList.class); collectionMap.put(PersistentList.class, ArrayList.class); collectionMap.put(PersistentMap.class, HashMap.class); collectionMap.put(PersistentSet.class, HashSet.class); collectionMap.put(PersistentSortedMap.class, TreeMap.class); collectionMap.put(PersistentSortedSet.class, TreeSet.class); }