Tabnine Logo
PropertyData.getProperty
Code IndexAdd Tabnine to your IDE (free)

How to use
getProperty
method
in
org.hibernate.cfg.PropertyData

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

origin: hibernate/hibernate-orm

public XProperty getProperty() {
  return wrappedInferredData.getProperty();
}
origin: hibernate/hibernate-orm

  MetadataBuildingContext context) {
super( path, parent, inferredData.getPropertyClass(), context );
final XProperty embeddedXProperty = inferredData.getProperty();
setCurrentProperty( embeddedXProperty );
this.component = component;
origin: hibernate/hibernate-orm

XProperty idXProperty = inferredData.getProperty();
origin: hibernate/hibernate-orm

XProperty property = inferredData.getProperty();
setupComponentTuplizer( property, componentId );
value.setPersistentClassName( persistentClassName );
value.setBuildingContext( buildingContext );
value.setType( inferredData.getProperty(), inferredData.getClassOrElement(), persistentClassName, null );
value.setAccessType( propertyAccessor );
id = value.make();
SecondPass secondPass = new IdGeneratorResolverSecondPass(
    id,
    inferredData.getProperty(),
    generatorType,
    generatorName,
BinderHelper.makeIdGenerator(
    id,
    inferredData.getProperty(),
    generatorType,
    generatorName,
binder.setValue( id );
binder.setAccessType( inferredData.getDefaultAccess() );
binder.setProperty( inferredData.getProperty() );
Property prop = binder.makeProperty();
rootClass.setIdentifierProperty( prop );
origin: hibernate/hibernate-orm

AnyMetaDef metaAnnDef = inferredData.getProperty().getAnnotation( AnyMetaDef.class );
  bindAnyMetaDefs( inferredData.getProperty(), context );
origin: hibernate/hibernate-orm

propertyHolder.startingProperty( inferredData.getProperty() );
          );
        final boolean hasXToOneAnnotation = entityPropertyData.getProperty()
            .isAnnotationPresent( ManyToOne.class )
            || entityPropertyData.getProperty().isAnnotationPresent( OneToOne.class );
        final boolean isOfDifferentType = !entityPropertyData.getClassOrElement()
            .equals( idClassPropertyData.getClassOrElement() );
  );
  XProperty property = propertyAnnotatedElement.getProperty();
  if ( property.isAnnotationPresent( GeneratedValue.class ) &&
      property.isAnnotationPresent( Id.class ) ) {
origin: hibernate/hibernate-orm

  /**
   * useful to override a column either by @MapsId or by @IdClass
   */
  Ejb3Column[] buildExcplicitOrDefaultJoinColumn(PropertyData overridingProperty) {
    Ejb3Column[] result;
    result = buildExplicitJoinColumns( overridingProperty.getProperty(), overridingProperty );
    if (result == null) {
      result = buildDefaultJoinColumnsForXToOne( overridingProperty.getProperty(), overridingProperty);
    }
    return result;
  }
}
origin: hibernate/hibernate-orm

  if ( propertyData.getPropertyName().equals( property.getName() ) ) {
    Id incomingIdProperty = property.getAnnotation( Id.class );
    Id existingIdProperty = propertyData.getProperty().getAnnotation( Id.class );
    if ( incomingIdProperty != null && existingIdProperty == null ) {
      throw new MappingException(
          String.format(
              "You cannot override the [%s] non-identifier property from the [%s] base class or @MappedSuperclass and make it an identifier in the [%s] subclass!",
              propertyData.getProperty().getName(),
              propertyData.getProperty().getDeclaringClass().getName(),
              property.getDeclaringClass().getName()
final XAnnotatedElement element = propertyAnnotatedElement.getProperty();
if ( element.isAnnotationPresent( Id.class ) || element.isAnnotationPresent( EmbeddedId.class ) ) {
  inFlightPropertyDataList.add( 0, propertyAnnotatedElement );
origin: hibernate/hibernate-orm

final XProperty property = inferredData.getProperty();
if ( property.isAnnotationPresent( Parent.class ) ) {
  if ( propertyHolder.isComponent() ) {
    boolean ignoreNotFound = notFound != null && notFound.action().equals( NotFoundAction.IGNORE );
    collectionBinder.setIgnoreNotFound( ignoreNotFound );
    collectionBinder.setCollectionType( inferredData.getProperty().getElementClass() );
    collectionBinder.setBuildingContext( context );
    collectionBinder.setAccessType( inferredData.getDefaultAccess() );
origin: hibernate/hibernate-orm

@Override
public void addPropertyAnnotatedWithMapsId(XClass entityType, PropertyData property) {
  if ( propertiesAnnotatedWithMapsId == null ) {
    propertiesAnnotatedWithMapsId = new HashMap<>();
  }
  Map<String, PropertyData> map = propertiesAnnotatedWithMapsId.get( entityType );
  if ( map == null ) {
    map = new HashMap<>();
    propertiesAnnotatedWithMapsId.put( entityType, map );
  }
  map.put( property.getProperty().getAnnotation( MapsId.class ).value(), property );
}
origin: hibernate/hibernate-orm

  && !inferredData.getProperty().isArray() ) {
column.setNullable( false );
origin: hibernate/hibernate-orm

public static XClass getTargetEntity(PropertyData propertyData, MetadataBuildingContext buildingContext) {
  XProperty property = propertyData.getProperty();
  return buildingContext.getBootstrapContext().getReflectionManager().toXClass( getTargetEntityClass( property ) );
}
origin: hibernate/hibernate-orm

XProperty property = inferredData.getProperty();
setupComponentTuplizer( property, comp );
PropertyBinder binder = new PropertyBinder();
binder.setName( inferredData.getPropertyName() );
binder.setValue( comp );
binder.setProperty( inferredData.getProperty() );
binder.setAccessType( inferredData.getDefaultAccess() );
binder.setEmbedded( isComponentEmbedded );
origin: hibernate/hibernate-orm

private static void applyColumnDefault(Ejb3Column column, PropertyData inferredData) {
  final XProperty xProperty = inferredData.getProperty();
  if ( xProperty != null ) {
    ColumnDefault columnDefaultAnn = xProperty.getAnnotation( ColumnDefault.class );
    if ( columnDefaultAnn != null ) {
      column.setDefaultValue( columnDefaultAnn.value() );
    }
  }
  else {
    LOG.trace(
        "Could not perform @ColumnDefault lookup as 'PropertyData' did not give access to XProperty"
    );
  }
}
origin: hibernate/hibernate-orm

  boolean isIdentifierMapper,
  MetadataBuildingContext buildingContext) {
org.hibernate.annotations.Any anyAnn = inferredData.getProperty()
    .getAnnotation( org.hibernate.annotations.Any.class );
if ( anyAnn == null ) {
origin: hibernate/hibernate-orm

public Boolean hasIdClassOrEmbeddedId() {
  if ( hasIdClassOrEmbeddedId == null ) {
    hasIdClassOrEmbeddedId = false;
    if ( getClassWithIdClass( true ) != null ) {
      hasIdClassOrEmbeddedId = true;
    }
    else {
      final ElementsToProcess process = getElementsToProcess();
      for ( PropertyData property : process.getElements() ) {
        if ( property.getProperty().isAnnotationPresent( EmbeddedId.class ) ) {
          hasIdClassOrEmbeddedId = true;
          break;
        }
      }
    }
  }
  return hasIdClassOrEmbeddedId;
}
origin: hibernate/hibernate-orm

String referencedEntityName = ToOneBinder.getReferenceEntityName( inferredData, targetEntity, buildingContext );
value.setReferencedEntityName( referencedEntityName );  
AnnotationBinder.defineFetchingStrategy( value, inferredData.getProperty() );
AnnotationBinder.bindForeignKeyNameAndDefinition(
    value,
    inferredData.getProperty(),
    inferredData.getProperty().getAnnotation( javax.persistence.ForeignKey.class ),
    inferredData.getProperty().getAnnotation( JoinColumn.class ),
    inferredData.getProperty().getAnnotation( JoinColumns.class )
);
binder.setAccessType( inferredData.getDefaultAccess() );
final LazyGroup lazyGroupAnnotation = inferredData.getProperty().getAnnotation( LazyGroup.class );
if ( lazyGroupAnnotation != null ) {
  binder.setLazyGroup( lazyGroupAnnotation.value() );
origin: hibernate/hibernate-orm

private void extractDataFromPropertyData(PropertyData inferredData) {
  if ( inferredData != null ) {
    XProperty property = inferredData.getProperty();
    if ( property != null ) {
      processExpression( property.getAnnotation( ColumnTransformer.class ) );
      ColumnTransformers annotations = property.getAnnotation( ColumnTransformers.class );
      if (annotations != null) {
        for ( ColumnTransformer annotation : annotations.value() ) {
          processExpression( annotation );
        }
      }
    }
  }
}
origin: hibernate/hibernate-orm

final XProperty property = inferredData.getProperty();
defineFetchingStrategy( value, property );
origin: hibernate/hibernate-orm

final XProperty property = idPropertyOnBaseClass.getProperty();
return property.isAnnotationPresent( ManyToOne.class )
    || property.isAnnotationPresent( OneToOne.class );
org.hibernate.cfgPropertyDatagetProperty

Javadoc

Return the Hibernate mapping property

Popular methods of PropertyData

  • getClassOrElement
    Returns the returned class itself or the element type if an array
  • getClassOrElementName
    Returns the returned class name itself or the element type if an array
  • getDefaultAccess
  • getPropertyClass
    Return the class itself
  • getPropertyName
  • getTypeName
    Returns the returned class name itself
  • getDeclaringClass
    Return the Class the property is declared on If the property is declared on a @MappedSuperclass, thi

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • getExternalFilesDir (Context)
  • putExtra (Intent)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Reference (javax.naming)
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top Vim 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