Code example for PersistentList

0
	public ListType(TypeFactory.TypeScope typeScope, String role, String propertyRef, boolean isEmbeddedInXML) { 
		super( typeScope, role, propertyRef, isEmbeddedInXML ); 
	} 
 
	public PersistentCollection instantiate(SessionImplementor session, CollectionPersister persister, Serializable key) { 
		return new PersistentList(session); 
	} 
 
	public Class getReturnedClass() { 
		return List.class; 
	} 
 
	public PersistentCollection wrap(SessionImplementor session, Object collection) { 
		return new PersistentList( session, (List) collection ); 
	} 
 
	public Object instantiate(int anticipatedSize) { 
		return anticipatedSize <= 0 ? new ArrayList() : new ArrayList( anticipatedSize + 1 ); 
	} 
	 
Contextual code suggestions in your IDE  Get Codota for Java