Best code examples for Hibernate ORM CollectionRemoveAction class (org.hibernate.action.internal.CollectionRemoveAction)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM CollectionRemoveAction class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Hibernate ORM CollectionRemoveAction examples from Open Source projects
This code example shows how to use the following methods:
                                            + MessageHelper.collectionInfoString(role, ownerIdentifier, source.getFactory())); 
		source.getActionQueue().addAction( new CollectionRemoveAction( owner, role, collectionKey, false, source ) ); 
	} 
 
	/** 
	 * This version is slightly different for say 
	 * {@link org.hibernate.type.CollectionType#getKeyOfOwner} in that here we 
	 * need to assume that the owner is not yet associated with the session, 
	 * and thus we cannot rely on the owner's EntityEntry snapshot... 
	 * 
	 * @param role The persister for the collection role being processed. 
	 * @return 
	 */ 
	final Serializable extractCollectionKeyFromOwner(CollectionPersister role) { 
        if ( role.getCollectionType().useLHSPrimaryKey() ) { 
			return ownerIdentifier; 
		} 
        return (Serializable)role.getOwnerEntityPersister().getPropertyValue( 
				owner, 
				role.getCollectionType().getLHSPropertyName() 
Full Snippet Info
4
CodeRank