Hibernate ORM PersistentMap - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM PersistentMap class.

This code example shows how to use the following methods:
			IllegalAccessException, InvocationTargetException, 
			SecurityException, NoSuchMethodException { 
		 
		PersistentCollectionSnapshot snapshot = new JMFPersistentCollectionSnapshot(null); 
		snapshot.readInitializationData(in); 
		return (snapshot.isInitialized() ? new PersistentMap(null, new HashMap<Object, Object>()) : new PersistentMap(null)); 
	} 
} 
5
CodeRank
This code example shows how to use the following methods:
		return anticipatedSize <= 0  
		       ? new HashMap() 
		       : new HashMap( anticipatedSize + (int)( anticipatedSize * .75f ), .75f ); 
	} 
 
	public Object replaceElements( 
		final Object original, 
		final Object target, 
		final Object owner,  
		final java.util.Map copyCache,  
		final SessionImplementor session) 
		throws HibernateException { 
 
		CollectionPersister cp = session.getFactory().getCollectionPersister( getRole() ); 
		 
		java.util.Map result = (java.util.Map) target; 
		result.clear(); 
		 
		Iterator iter = ( (java.util.Map) original ).entrySet().iterator(); 
		while ( iter.hasNext() ) { 
4
CodeRank