Codota Logo
SimpleValueBinder
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using org.hibernate.cfg.annotations.SimpleValueBinder (Showing top 20 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

private Property makePropertyAndValue() {
  validateBind();
  LOG.debugf( "MetadataSourceProcessor property %s with lazy=%s", name, lazy );
  final String containerClassName = holder.getClassName();
  holder.startingProperty( property );
  simpleValueBinder = new SimpleValueBinder();
  simpleValueBinder.setBuildingContext( buildingContext );
  simpleValueBinder.setPropertyName( name );
  simpleValueBinder.setReturnedClassName( returnedClassName );
  simpleValueBinder.setColumns( columns );
  simpleValueBinder.setPersistentClassName( containerClassName );
  simpleValueBinder.setType(
      property,
      returnedClass,
      containerClassName,
      holder.resolveAttributeConverterDescriptor( property )
  );
  simpleValueBinder.setReferencedEntityName( referencedEntityName );
  simpleValueBinder.setAccessType( accessType );
  SimpleValue propertyValue = simpleValueBinder.make();
  setValue( propertyValue );
  return makeProperty();
}
origin: hibernate/hibernate-orm

public SimpleValue make() {
  validate();
  LOG.debugf( "building SimpleValue for %s", propertyName );
  if ( table == null ) {
    table = columns[0].getTable();
  }
  simpleValue = new SimpleValue( buildingContext, table );
  if ( isVersion ) {
    simpleValue.makeVersion();
  }
  if ( isNationalized ) {
    simpleValue.makeNationalized();
  }
  if ( isLob ) {
    simpleValue.makeLob();
  }
  linkWithValue();
  boolean isInSecondPass = buildingContext.getMetadataCollector().isInSecondPass();
  if ( !isInSecondPass ) {
    //Defer this to the second pass
    buildingContext.getMetadataCollector().addSecondPass( new SetSimpleValueTypeSecondPass( this ) );
  }
  else {
    //We are already in second pass
    fillSimpleValue();
  }
  return simpleValue;
}
origin: hibernate/hibernate-orm

CollectionId collectionIdAnn = property.getAnnotation( CollectionId.class );
if ( collectionIdAnn != null ) {
  SimpleValueBinder simpleValue = new SimpleValueBinder();
  simpleValue.setTable( table );
  simpleValue.setColumns( idColumns );
  Type typeAnn = collectionIdAnn.type();
  if ( typeAnn != null && !BinderHelper.isEmptyAnnotationValue( typeAnn.type() ) ) {
    simpleValue.setExplicitType( typeAnn );
        + StringHelper.qualify( propertyHolder.getPath(), propertyName ) );
  simpleValue.setBuildingContext( getBuildingContext() );
  SimpleValue id = simpleValue.make();
  ( (IdentifierCollection) collection ).setIdentifier( id );
  String generator = collectionIdAnn.generator();
origin: org.hibernate/hibernate-annotations

private Property makePropertyAndValue() {
  validateBind();
  log.debug( "binding property {} with lazy={}", name, lazy );
  String containerClassName = holder == null ?
      null :
      holder.getClassName();
  simpleValueBinder = new SimpleValueBinder();
  simpleValueBinder.setMappings( mappings );
  simpleValueBinder.setPropertyName( name );
  simpleValueBinder.setReturnedClassName( returnedClassName );
  simpleValueBinder.setColumns( columns );
  simpleValueBinder.setPersistentClassName( containerClassName );
  simpleValueBinder.setType( property, returnedClass );
  simpleValueBinder.setMappings( mappings );
  simpleValueBinder.setReferencedEntityName( referencedEntityName );
  SimpleValue propertyValue = simpleValueBinder.make();
  setValue( propertyValue );
  return makeProperty();
}
origin: org.hibernate/hibernate-annotations

CollectionId collectionIdAnn = property.getAnnotation( CollectionId.class );
if ( collectionIdAnn != null ) {
  SimpleValueBinder simpleValue = new SimpleValueBinder();
  simpleValue.setTable( table );
  simpleValue.setColumns( idColumns );
  Type typeAnn = collectionIdAnn.type();
  if ( typeAnn != null && !BinderHelper.isDefault( typeAnn.type() ) ) {
    simpleValue.setExplicitType( typeAnn );
        + StringHelper.qualify( propertyHolder.getPath(), propertyName ) );
  simpleValue.setMappings( mappings );
  SimpleValue id = simpleValue.make();
  ( (IdentifierCollection) collection ).setIdentifier( id );
  String generator = collectionIdAnn.generator();
origin: org.hibernate/hibernate-annotations

SimpleValueBinder elementBinder = new SimpleValueBinder();
elementBinder.setMappings( mappings );
elementBinder.setReturnedClassName( mapKeyType );
  column.setTable( mapValue.getCollectionTable() );
elementBinder.setColumns( elementColumns );
elementBinder.setKey(true);
if (mapKeyAnn != null && ! BinderHelper.isDefault( mapKeyAnn.type().type() ) ) {
  elementBinder.setExplicitType( mapKeyAnn.type() );
  elementBinder.setType( property, elementClass );
mapValue.setIndex( elementBinder.make() );
origin: org.hibernate/hibernate-annotations

SimpleValueBinder elementBinder = new SimpleValueBinder();
elementBinder.setMappings( mappings );
elementBinder.setReturnedClassName( collType.getName() );
if ( elementColumns == null || elementColumns.length == 0 ) {
  elementColumns = new Ejb3Column[1];
  column.setTable( collValue.getCollectionTable() );
elementBinder.setColumns( elementColumns );
elementBinder.setType( property, elementClass );
collValue.setElement( elementBinder.make() );
origin: org.hibernate/hibernate-annotations

    );
  final TemporalType temporalType = getTemporalType( property );
  switch ( temporalType ) {
    case DATE:
    typeParameters.setProperty( EnumType.TABLE, columns[0].getTable().getName() );
    typeParameters.setProperty( EnumType.COLUMN, columns[0].getName() );
    javax.persistence.EnumType enumType = getEnumType( property );
    if ( enumType != null ) {
      if ( javax.persistence.EnumType.ORDINAL.equals( enumType ) ) {
this.typeParameters = typeParameters;
Type annType = property.getAnnotation( Type.class );
setExplicitType( annType );
origin: hibernate/hibernate-orm

String type = BinderHelper.ANNOTATION_STRING_DEFAULT;
if ( getDialect().supportsNationalizedTypes() ) {
  isNationalized = property.isAnnotationPresent( Nationalized.class )
      || buildingContext.getBuildingOptions().useNationalizedCharacterData();
  setExplicitType( annType );
  type = explicitType;
    );
  final TemporalType temporalType = getTemporalType( property );
  switch ( temporalType ) {
    case DATE:
this.typeParameters = typeParameters;
applyAttributeConverter( property, attributeConverterDescriptor );
origin: jboss.jboss-embeddable-ejb3/hibernate-all

SimpleValueBinder value = new SimpleValueBinder();
value.setPropertyName( inferredData.getPropertyName() );
value.setReturnedClassName( inferredData.getTypeName() );
value.setColumns( columns );
value.setPersistentClassName( persistentClassName );
value.setMappings( mappings );
value.setExplicitType( typeAnn );
id = value.make();
origin: jboss.jboss-embeddable-ejb3/hibernate-all

public SimpleValue make() {
  validate();
  log.debug( "building SimpleValue for " + propertyName );
  if (table == null) {
    table = columns[0].getTable();
  }
  SimpleValue simpleValue = new SimpleValue( table );
  return fillSimpleValue( simpleValue );
}
origin: hibernate/hibernate-orm

  public void doSecondPass(Map persistentClasses) throws MappingException {
    binder.fillSimpleValue();
  }
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

this.typeParameters = typeParameters;
Type annType = (Type) property.getAnnotation( Type.class );
setExplicitType( annType );
origin: org.hibernate/hibernate-annotations

SimpleValueBinder value = new SimpleValueBinder();
value.setPropertyName( propertyName );
value.setReturnedClassName( inferredData.getTypeName() );
value.setColumns( columns );
value.setPersistentClassName( persistentClassName );
value.setMappings( mappings );
value.setType( inferredData.getProperty(), inferredData.getClassOrElement() );
id = value.make();
origin: org.hibernate/hibernate-annotations

if ( !list.isOneToMany() ) indexColumn.forceNotNull();
indexColumn.setPropertyHolder( valueHolder );
SimpleValueBinder value = new SimpleValueBinder();
value.setColumns( new Ejb3Column[] { indexColumn } );
value.setExplicitType( "integer" );
value.setMappings( mappings );
SimpleValue indexValue = value.make();
indexColumn.linkWithValue( indexValue );
list.setIndex( indexValue );
origin: org.hibernate/com.springsource.org.hibernate.core

SimpleValueBinder elementBinder = new SimpleValueBinder();
elementBinder.setMappings( mappings );
elementBinder.setReturnedClassName( mapKeyType );
  column.setTable( mapValue.getCollectionTable() );
elementBinder.setColumns( elementColumns );
elementBinder.setKey(true);
MapKeyType mapKeyTypeAnnotation = property.getAnnotation( MapKeyType.class );
if ( mapKeyTypeAnnotation != null && !BinderHelper.isEmptyAnnotationValue(
        .type()
) ) {
  elementBinder.setExplicitType( mapKeyTypeAnnotation.value() );
  elementBinder.setType( property, elementClass );
mapValue.setIndex( elementBinder.make() );
origin: jboss.jboss-embeddable-ejb3/hibernate-all

SimpleValueBinder elementBinder = new SimpleValueBinder();
elementBinder.setMappings( mappings );
elementBinder.setReturnedClassName( mapKeyType );
  column.setTable( mapValue.getCollectionTable() );
elementBinder.setColumns( elementColumns );
elementBinder.setType( property, elementClass );
mapValue.setIndex( elementBinder.make() );
origin: org.hibernate/com.springsource.org.hibernate.core

    );
  final TemporalType temporalType = getTemporalType( property );
  switch ( temporalType ) {
    case DATE:
    typeParameters.setProperty( EnumType.TABLE, columns[0].getTable().getName() );
    typeParameters.setProperty( EnumType.COLUMN, columns[0].getName() );
    javax.persistence.EnumType enumType = getEnumType( property );
    if ( enumType != null ) {
      if ( javax.persistence.EnumType.ORDINAL.equals( enumType ) ) {
this.typeParameters = typeParameters;
Type annType = property.getAnnotation( Type.class );
setExplicitType( annType );
origin: org.hibernate/hibernate-annotations

public void doSecondPass(Map persistentClasses) throws MappingException {
  binder.fillSimpleValue();
}
origin: org.hibernate/com.springsource.org.hibernate

private Property makePropertyAndValue() {
  validateBind();
  LOG.debugf( "MetadataSourceProcessor property %s with lazy=%s", name, lazy );
  String containerClassName = holder == null ?
      null :
      holder.getClassName();
  simpleValueBinder = new SimpleValueBinder();
  simpleValueBinder.setMappings( mappings );
  simpleValueBinder.setPropertyName( name );
  simpleValueBinder.setReturnedClassName( returnedClassName );
  simpleValueBinder.setColumns( columns );
  simpleValueBinder.setPersistentClassName( containerClassName );
  simpleValueBinder.setType( property, returnedClass );
  simpleValueBinder.setMappings( mappings );
  simpleValueBinder.setReferencedEntityName( referencedEntityName );
  SimpleValue propertyValue = simpleValueBinder.make();
  setValue( propertyValue );
  return makeProperty();
}
org.hibernate.cfg.annotationsSimpleValueBinder

Most used methods

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

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • getSharedPreferences (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • JPanel (javax.swing)
  • Option (scala)
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