Tabnine Logo
Ejb3Column.isNullable
Code IndexAdd Tabnine to your IDE (free)

How to use
isNullable
method
in
org.hibernate.cfg.Ejb3Column

Best Java code snippets using org.hibernate.cfg.Ejb3Column.isNullable (Showing top 6 results out of 315)

origin: hibernate/hibernate-orm

public static void checkPropertyConsistency(Ejb3Column[] columns, String propertyName) {
  int nbrOfColumns = columns.length;
  if ( nbrOfColumns > 1 ) {
    for (int currentIndex = 1; currentIndex < nbrOfColumns; currentIndex++) {
      if (columns[currentIndex].isFormula() || columns[currentIndex - 1].isFormula()) {
        continue;
      }
      if ( columns[currentIndex].isInsertable() != columns[currentIndex - 1].isInsertable() ) {
        throw new AnnotationException(
            "Mixing insertable and non insertable columns in a property is not allowed: " + propertyName
        );
      }
      if ( columns[currentIndex].isNullable() != columns[currentIndex - 1].isNullable() ) {
        throw new AnnotationException(
            "Mixing nullable and non nullable columns in a property is not allowed: " + propertyName
        );
      }
      if ( columns[currentIndex].isUpdatable() != columns[currentIndex - 1].isUpdatable() ) {
        throw new AnnotationException(
            "Mixing updatable and non updatable columns in a property is not allowed: " + propertyName
        );
      }
      if ( !columns[currentIndex].getTable().equals( columns[currentIndex - 1].getTable() ) ) {
        throw new AnnotationException(
            "Mixing different tables in a property is not allowed: " + propertyName
        );
      }
    }
  }
}
origin: org.hibernate/hibernate-annotations

  );
if ( columns[currentIndex].isNullable() != columns[currentIndex - 1].isNullable() ) {
  throw new AnnotationException(
      "Mixing nullable and non nullable columns in a property is not allowed: " + propertyName
origin: jboss.jboss-embeddable-ejb3/hibernate-all

public static void checkPropertyConsistency(Ejb3Column[] columns, String propertyName) {
  int nbrOfColumns = columns.length;
  if ( nbrOfColumns > 1 ) {
    for ( int currentIndex = 1; currentIndex < nbrOfColumns ; currentIndex++ ) {
      if ( columns[currentIndex].isInsertable() != columns[currentIndex - 1].isInsertable() ) {
        throw new AnnotationException(
            "Mixing insertable and non insertable columns in a property is not allowed: " + propertyName
        );
      }
      if ( columns[currentIndex].isNullable() != columns[currentIndex - 1].isNullable() ) {
        throw new AnnotationException(
            "Mixing nullable and non nullable columns in a property is not allowed: " + propertyName
        );
      }
      if ( columns[currentIndex].isUpdatable() != columns[currentIndex - 1].isUpdatable() ) {
        throw new AnnotationException(
            "Mixing updatable and non updatable columns in a property is not allowed: " + propertyName
        );
      }
      if ( ! columns[currentIndex].getTable().equals( columns[currentIndex - 1].getTable() ) ) {
        throw new AnnotationException(
            "Mixing different tables in a property is not allowed: " + propertyName
        );
      }
    }
  }
}
origin: org.hibernate.orm/hibernate-core

public static void checkPropertyConsistency(Ejb3Column[] columns, String propertyName) {
  int nbrOfColumns = columns.length;
  if ( nbrOfColumns > 1 ) {
    for (int currentIndex = 1; currentIndex < nbrOfColumns; currentIndex++) {
      if (columns[currentIndex].isFormula() || columns[currentIndex - 1].isFormula()) {
        continue;
      }
      if ( columns[currentIndex].isInsertable() != columns[currentIndex - 1].isInsertable() ) {
        throw new AnnotationException(
            "Mixing insertable and non insertable columns in a property is not allowed: " + propertyName
        );
      }
      if ( columns[currentIndex].isNullable() != columns[currentIndex - 1].isNullable() ) {
        throw new AnnotationException(
            "Mixing nullable and non nullable columns in a property is not allowed: " + propertyName
        );
      }
      if ( columns[currentIndex].isUpdatable() != columns[currentIndex - 1].isUpdatable() ) {
        throw new AnnotationException(
            "Mixing updatable and non updatable columns in a property is not allowed: " + propertyName
        );
      }
      if ( !columns[currentIndex].getMappedTable().equals( columns[currentIndex - 1].getMappedTable() ) ) {
        throw new AnnotationException(
            "Mixing different tables in a property is not allowed: " + propertyName
        );
      }
    }
  }
}
origin: org.hibernate/com.springsource.org.hibernate

public static void checkPropertyConsistency(Ejb3Column[] columns, String propertyName) {
  int nbrOfColumns = columns.length;
  if ( nbrOfColumns > 1 ) {
    for (int currentIndex = 1; currentIndex < nbrOfColumns; currentIndex++) {
      if (columns[currentIndex].isFormula() || columns[currentIndex - 1].isFormula()) {
        continue;
      }
      if ( columns[currentIndex].isInsertable() != columns[currentIndex - 1].isInsertable() ) {
        throw new AnnotationException(
            "Mixing insertable and non insertable columns in a property is not allowed: " + propertyName
        );
      }
      if ( columns[currentIndex].isNullable() != columns[currentIndex - 1].isNullable() ) {
        throw new AnnotationException(
            "Mixing nullable and non nullable columns in a property is not allowed: " + propertyName
        );
      }
      if ( columns[currentIndex].isUpdatable() != columns[currentIndex - 1].isUpdatable() ) {
        throw new AnnotationException(
            "Mixing updatable and non updatable columns in a property is not allowed: " + propertyName
        );
      }
      if ( !columns[currentIndex].getTable().equals( columns[currentIndex - 1].getTable() ) ) {
        throw new AnnotationException(
            "Mixing different tables in a property is not allowed: " + propertyName
        );
      }
    }
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

public static void checkPropertyConsistency(Ejb3Column[] columns, String propertyName) {
  int nbrOfColumns = columns.length;
  if ( nbrOfColumns > 1 ) {
    for (int currentIndex = 1; currentIndex < nbrOfColumns; currentIndex++) {
      if (columns[currentIndex].isFormula() || columns[currentIndex - 1].isFormula()) {
        continue;
      }
      if ( columns[currentIndex].isInsertable() != columns[currentIndex - 1].isInsertable() ) {
        throw new AnnotationException(
            "Mixing insertable and non insertable columns in a property is not allowed: " + propertyName
        );
      }
      if ( columns[currentIndex].isNullable() != columns[currentIndex - 1].isNullable() ) {
        throw new AnnotationException(
            "Mixing nullable and non nullable columns in a property is not allowed: " + propertyName
        );
      }
      if ( columns[currentIndex].isUpdatable() != columns[currentIndex - 1].isUpdatable() ) {
        throw new AnnotationException(
            "Mixing updatable and non updatable columns in a property is not allowed: " + propertyName
        );
      }
      if ( !columns[currentIndex].getTable().equals( columns[currentIndex - 1].getTable() ) ) {
        throw new AnnotationException(
            "Mixing different tables in a property is not allowed: " + propertyName
        );
      }
    }
  }
}
org.hibernate.cfgEjb3ColumnisNullable

Popular methods of Ejb3Column

  • <init>
  • bind
  • buildColumnFromAnnotation
  • buildImplicitColumn
  • checkPropertyConsistency
  • forceNotNull
  • getJoin
  • getMappingColumn
  • getTable
    Find appropriate table of the column. It can come from a secondary table or from the main table of t
  • initMappingColumn
  • isInsertable
  • isSecondary
  • isInsertable,
  • isSecondary,
  • isUpdatable,
  • linkWithValue,
  • redefineColumnName,
  • setFormula,
  • setImplicit,
  • setInsertable,
  • setJoins

Popular in Java

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
  • getResourceAsStream (ClassLoader)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now