Examples of CollectionEntry


Examples of org.hibernate.engine.spi.CollectionEntry

   * Is this the "inverse" end of a bidirectional one-to-many, or
   * of a collection with no orphan delete?
   */
  @SuppressWarnings({"JavaDoc"})
  private boolean isInverseOneToManyOrNoOrphanDelete() {
    final CollectionEntry ce = session.getPersistenceContext().getCollectionEntry( this );
    return ce != null
        && ce.getLoadedPersister().isInverse()
        && ( ce.getLoadedPersister().isOneToMany() || !ce.getLoadedPersister().hasOrphanDelete() );
  }
View Full Code Here

Examples of org.hibernate.engine.spi.CollectionEntry

    if ( session == this.session ) {
      return false;
    }
    else {
      if ( isConnectedToSession() ) {
        final CollectionEntry ce = session.getPersistenceContext().getCollectionEntry( this );
        if ( ce == null ) {
          throw new HibernateException(
              "Illegal attempt to associate a collection with two open sessions"
          );
        }
        else {
          throw new HibernateException(
              "Illegal attempt to associate a collection with two open sessions: " +
                  MessageHelper.collectionInfoString(
                      ce.getLoadedPersister(), this,
                      ce.getLoadedKey(), session
                  )
          );
        }
      }
      else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.