Tabnine Logo
InheritanceState$ElementsToProcess.getElements
Code IndexAdd Tabnine to your IDE (free)

How to use
getElements
method
in
org.hibernate.cfg.InheritanceState$ElementsToProcess

Best Java code snippets using org.hibernate.cfg.InheritanceState$ElementsToProcess.getElements (Showing top 10 results out of 315)

origin: hibernate/hibernate-orm

  Set<String> idPropertiesIfIdClass) {
Set<String> missingIdProperties = new HashSet<>( idPropertiesIfIdClass );
for ( PropertyData propertyAnnotatedElement : elementsToProcess.getElements() ) {
  String propertyName = propertyAnnotatedElement.getPropertyName();
  if ( !idPropertiesIfIdClass.contains( propertyName ) ) {
origin: org.hibernate/hibernate-annotations

private static void processIdPropertiesIfNotAlready(Map<XClass, InheritanceState> inheritanceStatePerClass, ExtendedMappings mappings, PersistentClass persistentClass, EntityBinder entityBinder, PropertyHolder propertyHolder, HashMap<String, IdGenerator> classGenerators, InheritanceState.ElementsToProcess elementsToProcess, boolean subclassAndSingleTableStrategy, Set<String> idPropertiesIfIdClass) {
  Set<String> missingIdProperties = new HashSet<String>( idPropertiesIfIdClass );
  for ( PropertyData propertyAnnotatedElement : elementsToProcess.getElements() ) {
    String propertyName = propertyAnnotatedElement.getPropertyName();
    if ( !idPropertiesIfIdClass.contains( propertyName ) ) {
      processElementAnnotations(
          propertyHolder,
          subclassAndSingleTableStrategy ?
              Nullability.FORCED_NULL :
              Nullability.NO_CONSTRAINT,
          propertyAnnotatedElement, classGenerators, entityBinder,
          false, false, false, mappings, inheritanceStatePerClass
      );
    }
    else {
      missingIdProperties.remove( propertyName );
    }
  }
  if ( missingIdProperties.size() != 0 ) {
    StringBuilder missings = new StringBuilder();
    for ( String property : missingIdProperties ) {
      missings.append( property ).append( ", " );
    }
    throw new AnnotationException(
        "Unable to find properties ("
            + missings.substring( 0, missings.length() - 2 )
            + ") in entity annotated with @IdClass:" + persistentClass.getEntityName()
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

  Set<String> idPropertiesIfIdClass) {
Set<String> missingIdProperties = new HashSet<String>( idPropertiesIfIdClass );
for ( PropertyData propertyAnnotatedElement : elementsToProcess.getElements() ) {
  String propertyName = propertyAnnotatedElement.getPropertyName();
  if ( !idPropertiesIfIdClass.contains( propertyName ) ) {
origin: org.hibernate.orm/hibernate-core

  Set<String> idPropertiesIfIdClass) {
Set<String> missingIdProperties = new HashSet<>( idPropertiesIfIdClass );
for ( PropertyData propertyAnnotatedElement : elementsToProcess.getElements() ) {
  String propertyName = propertyAnnotatedElement.getPropertyName();
  if ( !idPropertiesIfIdClass.contains( propertyName ) ) {
origin: org.hibernate/com.springsource.org.hibernate

  Set<String> idPropertiesIfIdClass) {
Set<String> missingIdProperties = new HashSet<String>( idPropertiesIfIdClass );
for ( PropertyData propertyAnnotatedElement : elementsToProcess.getElements() ) {
  String propertyName = propertyAnnotatedElement.getPropertyName();
  if ( !idPropertiesIfIdClass.contains( propertyName ) ) {
origin: org.hibernate/com.springsource.org.hibernate.core

public Boolean hasIdClassOrEmbeddedId() {
  if ( hasIdClassOrEmbeddedId == null ) {
    hasIdClassOrEmbeddedId = false;
    if ( getClassWithIdClass( true ) != null ) {
      hasIdClassOrEmbeddedId = true;
    }
    else {
      final ElementsToProcess process = getElementsToProcess();
      for ( PropertyData property : process.getElements() ) {
        if ( property.getProperty().isAnnotationPresent( EmbeddedId.class ) ) {
          hasIdClassOrEmbeddedId = true;
          break;
        }
      }
    }
  }
  return hasIdClassOrEmbeddedId;
}
origin: org.hibernate/com.springsource.org.hibernate

public Boolean hasIdClassOrEmbeddedId() {
  if ( hasIdClassOrEmbeddedId == null ) {
    hasIdClassOrEmbeddedId = false;
    if ( getClassWithIdClass( true ) != null ) {
      hasIdClassOrEmbeddedId = true;
    }
    else {
      final ElementsToProcess process = getElementsToProcess();
      for ( PropertyData property : process.getElements() ) {
        if ( property.getProperty().isAnnotationPresent( EmbeddedId.class ) ) {
          hasIdClassOrEmbeddedId = true;
          break;
        }
      }
    }
  }
  return hasIdClassOrEmbeddedId;
}
origin: org.hibernate.orm/hibernate-core

public Boolean hasIdClassOrEmbeddedId() {
  if ( hasIdClassOrEmbeddedId == null ) {
    hasIdClassOrEmbeddedId = false;
    if ( getClassWithIdClass( true ) != null ) {
      hasIdClassOrEmbeddedId = true;
    }
    else {
      final ElementsToProcess process = getElementsToProcess();
      for ( PropertyData property : process.getElements() ) {
        if ( property.getProperty().isAnnotationPresent( EmbeddedId.class ) ) {
          hasIdClassOrEmbeddedId = true;
          break;
        }
      }
    }
  }
  return hasIdClassOrEmbeddedId;
}
origin: org.hibernate/hibernate-annotations

public Boolean hasIdClassOrEmbeddedId() {
  if (hasIdClassOrEmbeddedId == null) {
    hasIdClassOrEmbeddedId = false;
    if ( getClassWithIdClass( true ) != null ) {
      hasIdClassOrEmbeddedId = true;
    }
    else {
      final ElementsToProcess process = getElementsToProcess();
      for(PropertyData property : process.getElements() ) {
        if ( property.getProperty().isAnnotationPresent( EmbeddedId.class ) ) {
          hasIdClassOrEmbeddedId = true;
          break;
        }
      }
    }
  }
  return hasIdClassOrEmbeddedId;
}
origin: hibernate/hibernate-orm

public Boolean hasIdClassOrEmbeddedId() {
  if ( hasIdClassOrEmbeddedId == null ) {
    hasIdClassOrEmbeddedId = false;
    if ( getClassWithIdClass( true ) != null ) {
      hasIdClassOrEmbeddedId = true;
    }
    else {
      final ElementsToProcess process = getElementsToProcess();
      for ( PropertyData property : process.getElements() ) {
        if ( property.getProperty().isAnnotationPresent( EmbeddedId.class ) ) {
          hasIdClassOrEmbeddedId = true;
          break;
        }
      }
    }
  }
  return hasIdClassOrEmbeddedId;
}
org.hibernate.cfgInheritanceState$ElementsToProcessgetElements

Popular methods of InheritanceState$ElementsToProcess

  • <init>
  • getIdPropertyCount

Popular in Java

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • CodeWhisperer alternatives
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