congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Cache.include
Code IndexAdd Tabnine to your IDE (free)

How to use
include
method
in
org.hibernate.annotations.Cache

Best Java code snippets using org.hibernate.annotations.Cache.include (Showing top 5 results out of 315)

origin: hibernate/hibernate-orm

switch ( effectiveCacheAnn.include().toLowerCase( Locale.ROOT ) ) {
  case "all": {
    cacheLazyProperty = true;
        "Unknown @Cache.include value [" + effectiveCacheAnn.include() + "] : "
            + annotatedClass.getName()
    );
origin: org.hibernate/hibernate-annotations

public void setCache(Cache cacheAnn) {
  if ( cacheAnn != null ) {
    cacheRegion = BinderHelper.isDefault( cacheAnn.region() ) ?
        null :
        cacheAnn.region();
    cacheConcurrentStrategy = getCacheConcurrencyStrategy( cacheAnn.usage() );
    if ( "all".equalsIgnoreCase( cacheAnn.include() ) ) {
      cacheLazyProperty = true;
    }
    else if ( "non-lazy".equalsIgnoreCase( cacheAnn.include() ) ) {
      cacheLazyProperty = false;
    }
    else {
      throw new AnnotationException( "Unknown lazy property annotations: " + cacheAnn.include() );
    }
  }
  else {
    cacheConcurrentStrategy = null;
    cacheRegion = null;
    cacheLazyProperty = true;
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

public void setCache(Cache cacheAnn) {
  if ( cacheAnn != null ) {
    cacheRegion = BinderHelper.isEmptyAnnotationValue( cacheAnn.region() ) ?
        null :
        cacheAnn.region();
    cacheConcurrentStrategy = getCacheConcurrencyStrategy( cacheAnn.usage() );
    if ( "all".equalsIgnoreCase( cacheAnn.include() ) ) {
      cacheLazyProperty = true;
    }
    else if ( "non-lazy".equalsIgnoreCase( cacheAnn.include() ) ) {
      cacheLazyProperty = false;
    }
    else {
      throw new AnnotationException( "Unknown lazy property annotations: " + cacheAnn.include() );
    }
  }
  else {
    cacheConcurrentStrategy = null;
    cacheRegion = null;
    cacheLazyProperty = true;
  }
}

origin: org.hibernate/com.springsource.org.hibernate

public void setCache(Cache cacheAnn) {
  if ( cacheAnn != null ) {
    cacheRegion = BinderHelper.isEmptyAnnotationValue( cacheAnn.region() ) ?
        null :
        cacheAnn.region();
    cacheConcurrentStrategy = getCacheConcurrencyStrategy( cacheAnn.usage() );
    if ( "all".equalsIgnoreCase( cacheAnn.include() ) ) {
      cacheLazyProperty = true;
    }
    else if ( "non-lazy".equalsIgnoreCase( cacheAnn.include() ) ) {
      cacheLazyProperty = false;
    }
    else {
      throw new AnnotationException( "Unknown lazy property annotations: " + cacheAnn.include() );
    }
  }
  else {
    cacheConcurrentStrategy = null;
    cacheRegion = null;
    cacheLazyProperty = true;
  }
}

origin: org.hibernate.orm/hibernate-core

switch ( effectiveCacheAnn.include().toLowerCase( Locale.ROOT ) ) {
  case "all": {
    cacheLazyProperty = true;
        "Unknown @Cache.include value [" + effectiveCacheAnn.include() + "] : "
            + annotatedClass.getName()
    );
org.hibernate.annotationsCacheinclude

Popular methods of Cache

  • <init>
  • region
  • usage

Popular in Java

  • Updating database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Option (scala)
  • Top 17 PhpStorm Plugins
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