Package org.hibernate.engine.spi

Examples of org.hibernate.engine.spi.CollectionKey


   * @param entry The entry representing the collection.
   * @param key The key of the collection's entry.
   */
  private void addCollection(PersistentCollection coll, CollectionEntry entry, Serializable key) {
    collectionEntries.put( coll, entry );
    CollectionKey collectionKey = new CollectionKey( entry.getLoadedPersister(), key );
    PersistentCollection old = collectionsByKey.put( collectionKey, coll );
    if ( old != null ) {
      if ( old == coll ) {
        throw new AssertionFailure("bug adding collection twice");
      }
View Full Code Here


   * @param persister The collection persister
   * @param ownerKey The owner key
   * @return The loading collection, or null if not found.
   */
  public PersistentCollection locateLoadingCollection(CollectionPersister persister, Serializable ownerKey) {
    LoadingCollectionEntry lce = locateLoadingCollectionEntry( new CollectionKey( persister, ownerKey ) );
    if ( lce != null ) {
      if ( LOG.isTraceEnabled() ) {
        LOG.tracef(
            "Returning loading collection: %s",
            MessageHelper.collectionInfoString( persister, ownerKey, getSession().getFactory() )
View Full Code Here

TOP

Related Classes of org.hibernate.engine.spi.CollectionKey

Copyright © 2018 www.massapicom. 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.