Codota Logo
Ejb3Column.isInsertable
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain Ejb3Column
private void myMethod () {
Ejb3Column e =
  • Codota Iconnew Ejb3Column()
  • Smart code suggestions by Codota
}
origin: hibernate/hibernate-orm

public void setColumns(Ejb3Column[] columns) {
  insertable = columns[0].isInsertable();
  updatable = columns[0].isUpdatable();
  //consistency is checked later when we know the property name
  this.columns = columns;
}
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

public void setColumns(Ejb3Column[] columns) {
  insertable = columns[0].isInsertable();
  updatable = columns[0].isUpdatable();
  //consistency is checked later when we know the property name
  this.columns = columns;
}
origin: org.hibernate/hibernate-annotations

if ( columns[currentIndex].isInsertable() != columns[currentIndex - 1].isInsertable() ) {
  throw new AnnotationException(
      "Mixing insertable and non insertable columns in a property is not allowed: " + propertyName
origin: org.hibernate/com.springsource.org.hibernate

public void setColumns(Ejb3Column[] columns) {
  insertable = columns[0].isInsertable();
  updatable = columns[0].isUpdatable();
  //consistency is checked later when we know the property name
  this.columns = columns;
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

public void setColumns(Ejb3Column[] columns) {
  insertable = columns[0].isInsertable();
  updatable = columns[0].isUpdatable();
  //concsistency is checked later when we know the proeprty name
  this.columns = columns;
}
origin: org.hibernate.orm/hibernate-core

public void setColumns(Ejb3Column[] columns) {
  insertable = columns[0].isInsertable();
  updatable = columns[0].isUpdatable();
  //consistency is checked later when we know the property name
  this.columns = columns;
}
origin: org.hibernate/com.springsource.org.hibernate.core

public void setColumns(Ejb3Column[] columns) {
  insertable = columns[0].isInsertable();
  updatable = columns[0].isUpdatable();
  //consistency is checked later when we know the property name
  this.columns = columns;
}
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.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
        );
      }
    }
  }
}
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
        );
      }
    }
  }
}
org.hibernate.cfgEjb3ColumnisInsertable

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
  • isNullable
  • isSecondary
  • isNullable,
  • isSecondary,
  • isUpdatable,
  • linkWithValue,
  • redefineColumnName,
  • setFormula,
  • setImplicit,
  • setInsertable,
  • setJoins

Popular in Java

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now