Tabnine Logo
AnnotatedClassType
Code IndexAdd Tabnine to your IDE (free)

How to use
AnnotatedClassType
in
org.hibernate.cfg

Best Java code snippets using org.hibernate.cfg.AnnotatedClassType (Showing top 20 results out of 315)

origin: hibernate/hibernate-orm

private static boolean isEntityClassType(XClass clazzToProcess, AnnotatedClassType classType) {
  if ( AnnotatedClassType.EMBEDDABLE_SUPERCLASS.equals( classType ) //will be processed by their subentities
      || AnnotatedClassType.NONE.equals( classType ) //to be ignored
      || AnnotatedClassType.EMBEDDABLE.equals( classType ) //allow embeddable element declaration
      ) {
    if ( AnnotatedClassType.NONE.equals( classType )
        && clazzToProcess.isAnnotationPresent( org.hibernate.annotations.Entity.class ) ) {
      LOG.missingEntityAnnotation( clazzToProcess.getName() );
    }
    return false;
  }
  if ( !classType.equals( AnnotatedClassType.ENTITY ) ) {
    throw new AnnotationException(
        "Annotated class should have a @javax.persistence.Entity, @javax.persistence.Embeddable or @javax.persistence.EmbeddedSuperclass annotation: " + clazzToProcess
            .getName()
    );
  }
  return true;
}
origin: hibernate/hibernate-orm

private static void bindFilters(
    XClass annotatedClass,
    EntityBinder entityBinder,
    MetadataBuildingContext context) {
  bindFilters( annotatedClass, entityBinder );
  XClass classToProcess = annotatedClass.getSuperclass();
  while ( classToProcess != null ) {
    AnnotatedClassType classType = context.getMetadataCollector().getClassType( classToProcess );
    if ( AnnotatedClassType.EMBEDDABLE_SUPERCLASS.equals( classType ) ) {
      bindFilters( classToProcess, entityBinder );
    }
    else {
      break;
    }
    classToProcess = classToProcess.getSuperclass();
  }
}
origin: org.hibernate/hibernate-annotations

private static boolean isEntityClassType(XClass clazzToProcess, AnnotatedClassType classType) {
  if ( AnnotatedClassType.EMBEDDABLE_SUPERCLASS.equals( classType ) //will be processed by their subentities
      || AnnotatedClassType.NONE.equals( classType ) //to be ignored
      || AnnotatedClassType.EMBEDDABLE.equals( classType ) //allow embeddable element declaration
      ) {
    if ( AnnotatedClassType.NONE.equals( classType )
        && clazzToProcess.isAnnotationPresent( org.hibernate.annotations.Entity.class ) ) {
      log.warn(
          "Class annotated @org.hibernate.annotations.Entity but not javax.persistence.Entity "
              + "(most likely a user error): {}", clazzToProcess.getName()
      );
    }
    return false;
  }
  if ( !classType.equals( AnnotatedClassType.ENTITY ) ) {
    throw new AnnotationException(
        "Annotated class should have a @javax.persistence.Entity, @javax.persistence.Embeddable or @javax.persistence.EmbeddedSuperclass annotation: " + clazzToProcess
            .getName()
    );
  }
  return true;
}
origin: hibernate/hibernate-orm

if ( AnnotatedClassType.EMBEDDABLE.equals( classType ) ) {
  EntityBinder entityBinder = new EntityBinder();
origin: org.hibernate/hibernate-annotations

private static void bindFilters(XClass annotatedClass, EntityBinder entityBinder,
                ExtendedMappings mappings) {
  bindFilters( annotatedClass, entityBinder );
  XClass classToProcess = annotatedClass.getSuperclass();
  while ( classToProcess != null ) {
    AnnotatedClassType classType = mappings.getClassType( classToProcess );
    if ( AnnotatedClassType.EMBEDDABLE_SUPERCLASS.equals( classType ) ) {
      bindFilters( classToProcess, entityBinder );
    }
    classToProcess = classToProcess.getSuperclass();
  }
}
origin: hibernate/hibernate-orm

if ( AnnotatedClassType.EMBEDDABLE.equals( classType ) ) {
  holder.prepare( property );
origin: jboss.jboss-embeddable-ejb3/hibernate-all

private static boolean isNonPropertyToken(String token) {
  if ( " ".equals( token ) ) return true;
  if ( ",".equals( token ) ) return true;
  if ( token.equalsIgnoreCase( "desc" ) ) return true;
  if ( token.equalsIgnoreCase( "asc" ) ) return true;
  return false;
}
origin: hibernate/hibernate-orm

if ( AnnotatedClassType.EMBEDDABLE_SUPERCLASS.equals( classType ) ) {
  bindQueries( clazzToProcess, context );
  bindTypeDefs( clazzToProcess, context );
origin: org.hibernate/com.springsource.org.hibernate

private static boolean isEntityClassType(XClass clazzToProcess, AnnotatedClassType classType) {
  if ( AnnotatedClassType.EMBEDDABLE_SUPERCLASS.equals( classType ) //will be processed by their subentities
      || AnnotatedClassType.NONE.equals( classType ) //to be ignored
      || AnnotatedClassType.EMBEDDABLE.equals( classType ) //allow embeddable element declaration
      ) {
    if ( AnnotatedClassType.NONE.equals( classType )
        && clazzToProcess.isAnnotationPresent( org.hibernate.annotations.Entity.class ) ) {
      LOG.missingEntityAnnotation( clazzToProcess.getName() );
    }
    return false;
  }
  if ( !classType.equals( AnnotatedClassType.ENTITY ) ) {
    throw new AnnotationException(
        "Annotated class should have a @javax.persistence.Entity, @javax.persistence.Embeddable or @javax.persistence.EmbeddedSuperclass annotation: " + clazzToProcess
            .getName()
    );
  }
  return true;
}
origin: org.hibernate/com.springsource.org.hibernate.core

private static boolean isEntityClassType(XClass clazzToProcess, AnnotatedClassType classType) {
  if ( AnnotatedClassType.EMBEDDABLE_SUPERCLASS.equals( classType ) //will be processed by their subentities
      || AnnotatedClassType.NONE.equals( classType ) //to be ignored
      || AnnotatedClassType.EMBEDDABLE.equals( classType ) //allow embeddable element declaration
      ) {
    if ( AnnotatedClassType.NONE.equals( classType )
        && clazzToProcess.isAnnotationPresent( org.hibernate.annotations.Entity.class ) ) {
      LOG.missingEntityAnnotation( clazzToProcess.getName() );
    }
    return false;
  }
  if ( !classType.equals( AnnotatedClassType.ENTITY ) ) {
    throw new AnnotationException(
        "Annotated class should have a @javax.persistence.Entity, @javax.persistence.Embeddable or @javax.persistence.EmbeddedSuperclass annotation: " + clazzToProcess
            .getName()
    );
  }
  return true;
}
origin: org.hibernate.orm/hibernate-core

private static boolean isEntityClassType(XClass clazzToProcess, AnnotatedClassType classType) {
  if ( AnnotatedClassType.EMBEDDABLE_SUPERCLASS.equals( classType ) //will be processed by their subentities
      || AnnotatedClassType.NONE.equals( classType ) //to be ignored
      || AnnotatedClassType.EMBEDDABLE.equals( classType ) //allow embeddable element declaration
      ) {
    if ( AnnotatedClassType.NONE.equals( classType )
        && clazzToProcess.isAnnotationPresent( org.hibernate.annotations.Entity.class ) ) {
      LOG.missingEntityAnnotation( clazzToProcess.getName() );
    }
    return false;
  }
  if ( !classType.equals( AnnotatedClassType.ENTITY ) ) {
    throw new AnnotationException(
        "Annotated class should have a @javax.persistence.Entity, @javax.persistence.Embeddable or @javax.persistence.EmbeddedSuperclass annotation: " + clazzToProcess
            .getName()
    );
  }
  return true;
}
origin: org.hibernate/hibernate-annotations

if ( AnnotatedClassType.EMBEDDABLE.equals( classType ) ) {
  EntityBinder entityBinder = new EntityBinder();
  PersistentClass owner = collValue.getOwner();
origin: org.hibernate/hibernate-annotations

if ( AnnotatedClassType.EMBEDDABLE.equals( classType ) ) {
  EntityBinder entityBinder = new EntityBinder();
  PersistentClass owner = mapValue.getOwner();
origin: org.hibernate/com.springsource.org.hibernate

private static void bindFilters(XClass annotatedClass, EntityBinder entityBinder,
                Mappings mappings) {
  bindFilters( annotatedClass, entityBinder );
  XClass classToProcess = annotatedClass.getSuperclass();
  while ( classToProcess != null ) {
    AnnotatedClassType classType = mappings.getClassType( classToProcess );
    if ( AnnotatedClassType.EMBEDDABLE_SUPERCLASS.equals( classType ) ) {
      bindFilters( classToProcess, entityBinder );
    }
    classToProcess = classToProcess.getSuperclass();
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

private static void bindFilters(XClass annotatedClass, EntityBinder entityBinder,
                Mappings mappings) {
  bindFilters( annotatedClass, entityBinder );
  XClass classToProcess = annotatedClass.getSuperclass();
  while ( classToProcess != null ) {
    AnnotatedClassType classType = mappings.getClassType( classToProcess );
    if ( AnnotatedClassType.EMBEDDABLE_SUPERCLASS.equals( classType ) ) {
      bindFilters( classToProcess, entityBinder );
    }
    classToProcess = classToProcess.getSuperclass();
  }
}
origin: org.hibernate/hibernate-annotations

if ( AnnotatedClassType.EMBEDDABLE_SUPERCLASS.equals( classType ) ) {
  bindQueries( clazzToProcess, mappings );
  bindTypeDefs( clazzToProcess, mappings );
origin: org.hibernate.orm/hibernate-core

private static void bindFilters(
    XClass annotatedClass,
    EntityBinder entityBinder,
    MetadataBuildingContext context) {
  bindFilters( annotatedClass, entityBinder );
  XClass classToProcess = annotatedClass.getSuperclass();
  while ( classToProcess != null ) {
    AnnotatedClassType classType = context.getMetadataCollector().getClassType( classToProcess );
    if ( AnnotatedClassType.EMBEDDABLE_SUPERCLASS.equals( classType ) ) {
      bindFilters( classToProcess, entityBinder );
    }
    else {
      break;
    }
    classToProcess = classToProcess.getSuperclass();
  }
}
origin: org.hibernate/com.springsource.org.hibernate

if ( AnnotatedClassType.EMBEDDABLE.equals( classType ) ) {
  EntityBinder entityBinder = new EntityBinder();
  PersistentClass owner = collValue.getOwner();
origin: org.hibernate/com.springsource.org.hibernate.core

if ( AnnotatedClassType.EMBEDDABLE.equals( classType ) ) {
  EntityBinder entityBinder = new EntityBinder();
  PersistentClass owner = mapValue.getOwner();
origin: org.hibernate/com.springsource.org.hibernate.core

if ( AnnotatedClassType.EMBEDDABLE.equals( classType ) ) {
  EntityBinder entityBinder = new EntityBinder();
  PersistentClass owner = collValue.getOwner();
org.hibernate.cfgAnnotatedClassType

Javadoc

Type of annotation of a class will give its type

Most used methods

  • equals

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
  • compareTo (BigDecimal)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top Sublime Text plugins
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