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

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

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

origin: hibernate/hibernate-orm

public boolean isNullable() {
  return isFormula() ? true : mappingColumn.isNullable();
}
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

for (int currentIndex = 1; currentIndex < nbrOfColumns; currentIndex++) {
  if (columns[currentIndex].isFormula() || columns[currentIndex - 1].isFormula()) {
    continue;
origin: hibernate/hibernate-orm

if ( isId && col.isFormula() ) {
  throw new CannotForceNonNullableException(
      String.format(
origin: org.hibernate.orm/hibernate-core

public boolean isNullable() {
  return isFormula() ? true : mappingColumn.isNullable();
}
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
        );
      }
    }
  }
}
origin: org.hibernate.orm/hibernate-core

if ( isId && col.isFormula() ) {
  throw new CannotForceNonNullableException(
      String.format(
org.hibernate.cfgEjb3ColumnisFormula

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

Popular in Java

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • compareTo (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JFileChooser (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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