Hibernate ORM PersistentList - 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 PersistentList 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 PersistentList(null, new ArrayList<Object>()) : new PersistentList(null)); 
	} 
} 
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods:
	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 ); 
	} 
	 
Full Snippet Info
4
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods:
 
	public PersistentDefaultableList(SessionImplementor session, List list) { 
		super( session, list ); 
	} 
 
	public PersistentDefaultableList() { 
	} 
 
	public String getDefaultValue() { 
		return ( ( DefaultableList ) this.list ).getDefaultValue(); 
	} 
} 
Full Snippet Info
4
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE