Code example for SessionImplementor

Methods: getPersistenceContext

0
		} 
	} 
	 
	protected static void setIndex(Element element, String indexNodeName, String index) { 
		if (indexNodeName!=null) element.addAttribute(indexNodeName, index); 
	} 
	 
	protected static String getIndexAttributeName(CollectionPersister persister) { 
		String node = persister.getIndexNodeName(); 
		return node==null ? null : node.substring(1); 
	} 
	 
	public Serializable getSnapshot(CollectionPersister persister)  
	throws HibernateException { 
		 
		final Type elementType = persister.getElementType(); 
		String indexNode = getIndexAttributeName(persister);		 
		List elements = element.elements( persister.getElementNodeName() ); 
		HashMap snapshot = new HashMap( elements.size() ); 
		for ( int i=0; i<elements.size(); i++ ) { 
Contextual code suggestions in your IDE  Get Codota for Java