Codota Logo
SimpleValueBinder.isVersion
Code IndexAdd Codota 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)

  • Common ways to obtain SimpleValueBinder
private void myMethod () {
SimpleValueBinder s =
  • Codota Iconnew SimpleValueBinder()
  • Smart code suggestions by Codota
}
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

  • Start an intent from android
  • getSupportFragmentManager (FragmentActivity)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • onRequestPermissionsResult (Fragment)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • JOptionPane (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now