congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SimpleValueBinder.isVersion
Code IndexAdd Tabnine to your IDE (free)

How to use
isVersion
method
in
org.hibernate.cfg.annotations.SimpleValueBinder

Best Java code snippets using org.hibernate.cfg.annotations.SimpleValueBinder.isVersion (Showing top 4 results out of 315)

origin: hibernate/hibernate-orm

if ( !simpleValue.isTypeSpecified() && isVersion() ) {
  simpleValue.setTypeName( "integer" );
origin: org.hibernate/hibernate-annotations

public void fillSimpleValue() {
      
  log.debug( "setting SimpleValue typeName for {}", propertyName );
      
  String type = BinderHelper.isDefault( explicitType ) ? returnedClassName : explicitType;
  org.hibernate.mapping.TypeDef typeDef = mappings.getTypeDef( type );
  if ( typeDef != null ) {
    type = typeDef.getTypeClass();
    simpleValue.setTypeParameters( typeDef.getParameters() );
  }
  if ( typeParameters != null && typeParameters.size() != 0 ) {
    //explicit type params takes precedence over type def params
    simpleValue.setTypeParameters( typeParameters );
  }
  simpleValue.setTypeName( type );
  if ( persistentClassName != null ) {
    simpleValue.setTypeUsingReflection( persistentClassName, propertyName );
  }
  
  if ( !simpleValue.isTypeSpecified() && isVersion()) {
    simpleValue.setTypeName( "integer" );
  }
      
}
origin: org.hibernate/com.springsource.org.hibernate.core

public void fillSimpleValue() {
  LOG.debugf( "Setting SimpleValue typeName for %s", propertyName );
  String type = BinderHelper.isEmptyAnnotationValue( explicitType ) ? returnedClassName : explicitType;
  org.hibernate.mapping.TypeDef typeDef = mappings.getTypeDef( type );
  if ( typeDef != null ) {
    type = typeDef.getTypeClass();
    simpleValue.setTypeParameters( typeDef.getParameters() );
  }
  if ( typeParameters != null && typeParameters.size() != 0 ) {
    //explicit type params takes precedence over type def params
    simpleValue.setTypeParameters( typeParameters );
  }
  simpleValue.setTypeName( type );
  if ( persistentClassName != null ) {
    simpleValue.setTypeUsingReflection( persistentClassName, propertyName );
  }
  if ( !simpleValue.isTypeSpecified() && isVersion() ) {
    simpleValue.setTypeName( "integer" );
  }
  // HHH-5205
  if ( timeStampVersionType != null ) {
    simpleValue.setTypeName( timeStampVersionType );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

public void fillSimpleValue() {
  LOG.debugf( "Setting SimpleValue typeName for %s", propertyName );
  String type = BinderHelper.isEmptyAnnotationValue( explicitType ) ? returnedClassName : explicitType;
  org.hibernate.mapping.TypeDef typeDef = mappings.getTypeDef( type );
  if ( typeDef != null ) {
    type = typeDef.getTypeClass();
    simpleValue.setTypeParameters( typeDef.getParameters() );
  }
  if ( typeParameters != null && typeParameters.size() != 0 ) {
    //explicit type params takes precedence over type def params
    simpleValue.setTypeParameters( typeParameters );
  }
  simpleValue.setTypeName( type );
  if ( persistentClassName != null ) {
    simpleValue.setTypeUsingReflection( persistentClassName, propertyName );
  }
  if ( !simpleValue.isTypeSpecified() && isVersion() ) {
    simpleValue.setTypeName( "integer" );
  }
  // HHH-5205
  if ( timeStampVersionType != null ) {
    simpleValue.setTypeName( timeStampVersionType );
  }
}
org.hibernate.cfg.annotationsSimpleValueBinderisVersion

Popular methods of SimpleValueBinder

  • <init>
  • fillSimpleValue
  • make
  • setColumns
  • setExplicitType
  • setPersistentClassName
  • setPropertyName
  • setReturnedClassName
  • setType
  • validate
  • getTemporalType
  • linkWithValue
  • getTemporalType,
  • linkWithValue,
  • setKey,
  • setMappings,
  • setReferencedEntityName,
  • setTable,
  • setVersion,
  • getEnumType,
  • setTimestampVersionType

Popular in Java

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • findViewById (Activity)
  • startActivity (Activity)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Github Copilot 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