Code example for PersistenceContext

Methods: proxyFor

0
			} 
		} 
		return null; 
	} 
 
	private Object getIndexInParent( 
			String property, 
			Object childEntity, 
			EntityPersister persister, 
			CollectionPersister collectionPersister, 
			Object potentialParent 
	){ 
		Object collection = persister.getPropertyValue( potentialParent, property ); 
		if ( collection!=null && Hibernate.isInitialized(collection) ) { 
			return collectionPersister.getCollectionType().indexOf(collection, childEntity); 
		} 
		else { 
			return null; 
		} 
	} 
Experience pair programming with AI  Get Codota for Java