Code example for CollectionAliases

Methods: getSuffixedElementAliases

0
	public void initializeFromCache(CollectionPersister persister, Serializable disassembled, Object owner) 
	throws HibernateException { 
 
		Type elementType = persister.getElementType(); 
		Serializable[] cached = (Serializable[]) disassembled; 
		for ( int i=0; i<cached.length; i++ ) { 
			Object object = elementType.assemble( cached[i], getSession(), owner ); 
			Element subelement = element.addElement( persister.getElementNodeName() ); 
			elementType.setToXMLNode( subelement, object, persister.getFactory() ); 
		} 
 
	} 
 
	public Serializable disassemble(CollectionPersister persister) throws HibernateException { 
 
		Type elementType = persister.getElementType(); 
		List elements =  element.elements( persister.getElementNodeName() ); 
		int length = elements.size(); 
		Serializable[] result = new Serializable[length]; 
		for ( int i=0; i<length; i++ ) { 
Contextual code suggestions in your IDE  Get Codota for Java