/** * Is this the "inverse" end of a bidirectional association with * no orphan delete enabled? */ @SuppressWarnings({"JavaDoc"}) protected boolean isInverseCollectionNoOrphanDelete() { final CollectionEntry ce = session.getPersistenceContext().getCollectionEntry( this ); return ce != null && ce.getLoadedPersister().isInverse() && !ce.getLoadedPersister().hasOrphanDelete(); }
/** * Is this the "inverse" end of a bidirectional one-to-many, or * of a collection with no orphan delete? */ @SuppressWarnings({"JavaDoc"}) protected boolean isInverseOneToManyOrNoOrphanDelete() { final CollectionEntry ce = session.getPersistenceContext().getCollectionEntry( this ); return ce != null && ce.getLoadedPersister().isInverse() && ( ce.getLoadedPersister().isOneToMany() || !ce.getLoadedPersister().hasOrphanDelete() ); }
loadedPersister != null && currentPersister != null && loadedPersister.hasOrphanDelete();
final boolean hasOrphanDelete = loadedPersister != null && loadedPersister.hasOrphanDelete(); if ( hasOrphanDelete ) { Serializable ownerId = loadedPersister.getOwnerEntityPersister().getIdentifier( coll.getOwner(), session );
@Override public boolean hasOrphanDelete() { return persister.hasOrphanDelete(); }
/** * Add a new collection (ie. a newly created one, just instantiated by the * application, with no database state or snapshot) * * @param collection The collection to be associated with the persistence context */ public void addNewCollection(PersistentCollection collection, CollectionPersister persister) throws HibernateException { CollectionEntry ce = addCollection(collection); if ( persister.hasOrphanDelete() ) { ce.initSnapshot(collection, persister); } }
/** * Is this the "inverse" end of a bidirectional association with * no orphan delete enabled? */ @SuppressWarnings( {"JavaDoc"}) private boolean isInverseCollectionNoOrphanDelete() { CollectionEntry ce = session.getPersistenceContext().getCollectionEntry(this); return ce != null && ce.getLoadedPersister().isInverse() && !ce.getLoadedPersister().hasOrphanDelete(); }
/** * Is this the "inverse" end of a bidirectional association with * no orphan delete enabled? */ @SuppressWarnings( {"JavaDoc"}) private boolean isInverseCollectionNoOrphanDelete() { CollectionEntry ce = session.getPersistenceContext().getCollectionEntry(this); return ce != null && ce.getLoadedPersister().isInverse() && !ce.getLoadedPersister().hasOrphanDelete(); }
/** * Is this the "inverse" end of a bidirectional association with * no orphan delete enabled? */ private boolean isInverseCollectionNoOrphanDelete() { CollectionEntry ce = session.getPersistenceContext().getCollectionEntry(this); return ce != null && ce.getLoadedPersister().isInverse() && !ce.getLoadedPersister().hasOrphanDelete(); }
/** * Is this the "inverse" end of a bidirectional one-to-many, or * of a collection with no orphan delete? */ @SuppressWarnings( {"JavaDoc"}) private boolean isInverseOneToManyOrNoOrphanDelete() { CollectionEntry ce = session.getPersistenceContext().getCollectionEntry(this); return ce != null && ce.getLoadedPersister().isInverse() && ( ce.getLoadedPersister().isOneToMany() || !ce.getLoadedPersister().hasOrphanDelete() ); }
/** * Is this the "inverse" end of a bidirectional one-to-many, or * of a collection with no orphan delete? */ private boolean isInverseOneToManyOrNoOrphanDelete() { CollectionEntry ce = session.getPersistenceContext().getCollectionEntry(this); return ce != null && ce.getLoadedPersister().isInverse() && ( ce.getLoadedPersister().isOneToMany() || !ce.getLoadedPersister().hasOrphanDelete() ); }
/** * Is this the "inverse" end of a bidirectional one-to-many, or * of a collection with no orphan delete? */ @SuppressWarnings( {"JavaDoc"}) private boolean isInverseOneToManyOrNoOrphanDelete() { CollectionEntry ce = session.getPersistenceContext().getCollectionEntry(this); return ce != null && ce.getLoadedPersister().isInverse() && ( ce.getLoadedPersister().isOneToMany() || !ce.getLoadedPersister().hasOrphanDelete() ); }
loadedPersister.hasOrphanDelete();
entry.getLoadedPersister().hasOrphanDelete() ) { EntityKey key = new EntityKey(
entry.getLoadedPersister() != null && entry.getCurrentPersister() != null && entry.getLoadedPersister().hasOrphanDelete() ) { throw new HibernateException(
loadedPersister.hasOrphanDelete();
loadedPersister.hasOrphanDelete(); if (hasOrphanDelete) { Serializable ownerId = loadedPersister.getOwnerEntityPersister()
loadedPersister.hasOrphanDelete();
boolean hasOrphanDelete = loadedPersister != null && loadedPersister.hasOrphanDelete(); if (hasOrphanDelete) { Serializable ownerId = loadedPersister.getOwnerEntityPersister().getIdentifier( coll.getOwner(), session );
boolean hasOrphanDelete = loadedPersister != null && loadedPersister.hasOrphanDelete(); if (hasOrphanDelete) { Serializable ownerId = loadedPersister.getOwnerEntityPersister().getIdentifier( coll.getOwner(), session );