Code example for PersistentMap

0
		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() ) { 
Experience pair programming with AI  Get Codota for Java