Examples of AssertionFailure


Examples of contrib.org.hibernate.AssertionFailure

  @Override
  public String foreignKeyColumnName(
      String propertyName, String propertyEntityName, String propertyTableName, String referencedColumnName
  ) {
    String header = propertyName != null ? StringHelper.unqualify( propertyName ) : propertyTableName;
    if (header == null) throw new AssertionFailure("NammingStrategy not properly filled");
    return columnName( header ); //+ "_" + referencedColumnName not used for backward compatibility
  }
View Full Code Here

Examples of org.biojava.utils.AssertionFailure

      if (rt == null) {
        rt = new RemoteTerm.Impl(this, t, name);
        try {
          addTerm(rt);
        } catch (AlreadyExistsException e) {
          throw new AssertionFailure("This term can not exist", e);
        }
        if(name == null) {
          remoteTerms.put(t, rt);
        }
        localRemoteTerms.add(rt);
View Full Code Here

Examples of org.hibernate.AssertionFailure

   * Return the property name or propertyTableName
   */
  public String foreignKeyColumnName(String propertyName, String propertyEntityName,
      String propertyTableName, String referencedColumnName) {
    String header = null == propertyName ? propertyTableName : unqualify(propertyName);
    if (header == null) { throw new AssertionFailure("NamingStrategy not properly filled"); }
    // workground annotation collection foreignKey.
    if (header.endsWith("s")) {
      header = addUnderscores(propertyTableName);
    } else {
      header = addUnderscores(header);
View Full Code Here

Examples of org.hibernate.AssertionFailure

   */
  public String foreignKeyColumnName(
      String propertyName, String propertyEntityName, String propertyTableName, String referencedColumnName
  ) {
    String header = propertyName != null ? StringHelper.unqualify( propertyName ) : propertyTableName;
    if (header == null) throw new AssertionFailure("NamingStrategy not properly filled");
    return columnName( header ); //+ "_" + referencedColumnName not used for backward compatibility
  }
View Full Code Here

Examples of org.hibernate.AssertionFailure

  public EmbeddedCacheManager getCacheManager(final int expectedGroupSize) {
    if ( ! started ) {
      throw new IllegalStateException( "The before() method of this Rule was not triggered (or did not complete succesfully)" );
    }
    if ( manager == null ) {
      throw new AssertionFailure( "Unexpected state: the CacheManager not created?" );
    }
    if ( ! groupFormed && expectedGroupSize != 1 ) {
      verifyNetworkStackEnabled();
      verifyConfiguredAsClustered( manager );
      TestingUtil.blockUntilViewReceived( manager.getCache(), expectedGroupSize, joinTimeoutMilliseconds, true );
View Full Code Here

Examples of org.hibernate.AssertionFailure

      case EMBEDDED_COLLECTION:
        return createRelationshipWithEmbeddedNode( associationKey, associationRow, associatedEntityKeyMetadata );
      case ASSOCIATION:
        return findOrCreateRelationshipWithEntityNode( associationKey, associationRow, associatedEntityKeyMetadata );
      default:
        throw new AssertionFailure( "Unrecognized associationKind: " + associationKey.getMetadata().getAssociationKind() );
    }
  }
View Full Code Here

Examples of org.hibernate.annotations.common.AssertionFailure

          for (DirectoryProvider provider : providers) {
            queueWithFlatDPs.add( new LuceneWorker.WorkWithPayload(work, provider) );
          }
        }
        else {
          throw new AssertionFailure( "Unknown work type: " + work.getClass() );
        }
      }
      deadlockFreeQueue(queueWithFlatDPs, searchFactoryImplementor);
      checkForBatchIndexing(workspace);   
      for ( LuceneWorker.WorkWithPayload luceneWork : queueWithFlatDPs ) {
View Full Code Here

Examples of org.hibernate.annotations.common.AssertionFailure

        throw new SearchException( "Incompatible version of Lucene: MultiReader.subReaders not accessible", e );
      }
      if ( trace ) log.trace( "Closing MultiReader: " + reader );
    }
    else {
      throw new AssertionFailure( "Everything should be wrapped in a MultiReader" );
    }

    for (IndexReader subReader : readers) {
      ReaderData readerData;
      //TODO can we avoid that lock?
View Full Code Here

Examples of org.hibernate.annotations.common.AssertionFailure

public class NotShardedStrategy implements IndexShardingStrategy {
  private DirectoryProvider[] directoryProvider;
  public void initialize(Properties properties, DirectoryProvider[] providers) {
    this.directoryProvider = providers;
    if ( directoryProvider.length > 1) {
      throw new AssertionFailure("Using SingleDirectoryProviderSelectionStrategy with multiple DirectryProviders");
    }
  }
View Full Code Here

Examples of org.hibernate.annotations.common.AssertionFailure

          //too bad we have to reparse to validate again :(
          saxReader.read( new StringReader( doc.asXML() ) );
        }
        catch ( DocumentException e ) {
          //oops asXML fails even if the core doc parses initially
          throw new AssertionFailure("Error in DOM4J leads to a bug in Hibernate", e);
        }

      }
      if ( errors.size() != 0 ) {
        //report errors in exception
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.