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

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

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

origin: hibernate/hibernate-orm

public String getClassOrElementName() throws MappingException {
  return wrappedInferredData.getClassOrElementName();
}
origin: hibernate/hibernate-orm

public static String getReferenceEntityName(PropertyData propertyData, XClass targetEntity, MetadataBuildingContext buildingContext) {
  if ( AnnotationBinder.isDefault( targetEntity, buildingContext ) ) {
    return propertyData.getClassOrElementName();
  }
  else {
    return targetEntity.getName();
  }
}
origin: hibernate/hibernate-orm

public static String getReferenceEntityName(PropertyData propertyData, MetadataBuildingContext buildingContext) {
  XClass targetEntity = getTargetEntity( propertyData, buildingContext );
  if ( AnnotationBinder.isDefault( targetEntity, buildingContext ) ) {
    return propertyData.getClassOrElementName();
  }
  else {
    return targetEntity.getName();
  }
}
origin: hibernate/hibernate-orm

public static Component createComponent(
    PropertyHolder propertyHolder,
    PropertyData inferredData,
    boolean isComponentEmbedded,
    boolean isIdentifierMapper,
    MetadataBuildingContext context) {
  Component comp = new Component( context, propertyHolder.getPersistentClass() );
  comp.setEmbedded( isComponentEmbedded );
  //yuk
  comp.setTable( propertyHolder.getTable() );
  //FIXME shouldn't identifier mapper use getClassOrElementName? Need to be checked.
  if ( isIdentifierMapper || ( isComponentEmbedded && inferredData.getPropertyName() == null ) ) {
    comp.setComponentClassName( comp.getOwner().getClassName() );
  }
  else {
    comp.setComponentClassName( inferredData.getClassOrElementName() );
  }
  return comp;
}
origin: org.hibernate/hibernate-annotations

public String getClassOrElementName() throws MappingException {
  return wrappedInferredData.getClassOrElementName();
}
origin: org.hibernate/hibernate-annotations

public static String getReferenceEntityName(PropertyData propertyData, XClass targetEntity, ExtendedMappings mappings) {
  if ( AnnotationBinder.isDefault( targetEntity, mappings ) ) {
    return propertyData.getClassOrElementName();
  }
  else {
    return targetEntity.getName();
  }
}
origin: org.hibernate/hibernate-annotations

public static String getReferenceEntityName(PropertyData propertyData, ExtendedMappings mappings) {
  XClass targetEntity = getTargetEntity( propertyData, mappings );
  if ( AnnotationBinder.isDefault( targetEntity, mappings ) ) {
    return propertyData.getClassOrElementName();
  }
  else {
    return targetEntity.getName();
  }
}
origin: hibernate/hibernate-orm

value.setTypeName( inferredData.getClassOrElementName() );
final String propertyName = inferredData.getPropertyName();
value.setTypeUsingReflection( propertyHolder.getClassName(), propertyName );
origin: jboss.jboss-embeddable-ejb3/hibernate-all

public String getClassOrElementName() throws MappingException {
  return wrappedInferredData.getClassOrElementName();
}
origin: org.hibernate/com.springsource.org.hibernate.core

public String getClassOrElementName() throws MappingException {
  return wrappedInferredData.getClassOrElementName();
}
origin: org.hibernate/hibernate-annotations

public static Component createComponent(PropertyHolder propertyHolder, PropertyData inferredData, boolean isComponentEmbedded, boolean isIdentifierMapper) {
  Component comp = new Component( propertyHolder.getPersistentClass() );
  comp.setEmbedded( isComponentEmbedded );
  //yuk
  comp.setTable( propertyHolder.getTable() );
  //FIXME shouldn't identifier mapper use getClassOrElementName? Need to be checked.
  if ( isIdentifierMapper || ( isComponentEmbedded && inferredData.getPropertyName() == null ) ) {
    comp.setComponentClassName( comp.getOwner().getClassName() );
  }
  else {
    comp.setComponentClassName( inferredData.getClassOrElementName() );
  }
  comp.setNodeName( inferredData.getPropertyName() );
  return comp;
}
origin: hibernate/hibernate-orm

LOG.debugf(
    "Skipping attribute [%s : %s] as it was already processed as part of super hierarchy",
    inferredData.getClassOrElementName(),
    inferredData.getPropertyName()
);
        isId, propertyHolder, property.getName(), context
    );
    referencedEntityName = mapsIdProperty.getClassOrElementName();
        isId, propertyHolder, property.getName(), context
    );
    propertyBinder.setReferencedEntityName( mapsIdProperty.getClassOrElementName() );
origin: org.hibernate.orm/hibernate-core

public static String getReferenceEntityName(PropertyData propertyData, XClass targetEntity, MetadataBuildingContext buildingContext) {
  if ( AnnotationBinder.isDefault( targetEntity, buildingContext ) ) {
    return propertyData.getClassOrElementName();
  }
  else {
    return targetEntity.getName();
  }
}
origin: org.hibernate/com.springsource.org.hibernate

public static String getReferenceEntityName(PropertyData propertyData, XClass targetEntity, Mappings mappings) {
  if ( AnnotationBinder.isDefault( targetEntity, mappings ) ) {
    return propertyData.getClassOrElementName();
  }
  else {
    return targetEntity.getName();
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

public static String getReferenceEntityName(PropertyData propertyData, XClass targetEntity, Mappings mappings) {
  if ( AnnotationBinder.isDefault( targetEntity, mappings ) ) {
    return propertyData.getClassOrElementName();
  }
  else {
    return targetEntity.getName();
  }
}
origin: org.hibernate.orm/hibernate-core

public static String getReferenceEntityName(PropertyData propertyData, MetadataBuildingContext buildingContext) {
  XClass targetEntity = getTargetEntity( propertyData, buildingContext );
  if ( AnnotationBinder.isDefault( targetEntity, buildingContext ) ) {
    return propertyData.getClassOrElementName();
  }
  else {
    return targetEntity.getName();
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

public static String getReferenceEntityName(PropertyData propertyData, Mappings mappings) {
  XClass targetEntity = getTargetEntity( propertyData, mappings );
  if ( AnnotationBinder.isDefault( targetEntity, mappings ) ) {
    return propertyData.getClassOrElementName();
  }
  else {
    return targetEntity.getName();
  }
}
origin: org.hibernate/com.springsource.org.hibernate

public static String getReferenceEntityName(PropertyData propertyData, Mappings mappings) {
  XClass targetEntity = getTargetEntity( propertyData, mappings );
  if ( AnnotationBinder.isDefault( targetEntity, mappings ) ) {
    return propertyData.getClassOrElementName();
  }
  else {
    return targetEntity.getName();
  }
}
origin: org.hibernate/hibernate-annotations

value.setTypeName( inferredData.getClassOrElementName() );
final String propertyName = inferredData.getPropertyName();
value.setTypeUsingReflection( propertyHolder.getClassName(), propertyName );
origin: org.hibernate/hibernate-annotations

    isId, propertyHolder, property.getName(), mappings
);
referencedEntityName = mapsIdProperty.getClassOrElementName();
    isId, propertyHolder, property.getName(), mappings
);
propertyBinder.setReferencedEntityName( mapsIdProperty.getClassOrElementName() );
org.hibernate.cfgPropertyDatagetClassOrElementName

Javadoc

Returns the returned class name itself or the element type if an array

Popular methods of PropertyData

  • getClassOrElement
    Returns the returned class itself or the element type if an array
  • getDefaultAccess
  • getProperty
  • 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

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • startActivity (Activity)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top PhpStorm 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