@Override public AttributePath getOwningAttributePath() { // we don't know path on the annotations side :( return AttributePath.parse( propertyName ); }
/** * For JPA standards we typically need the unqualified name. However, a more usable * impl tends to use the whole path. This method provides an easy hook for subclasses * to accomplish that * * @param attributePath The attribute path * * @return The extracted name */ protected String transformAttributePath(AttributePath attributePath) { return attributePath.getProperty(); }
@Override public AttributePath append(String property) { return new AttributePath( this, property ); }
public ManyToOneColumnBinder( MappingDocument mappingDocument, SingularAttributeSourceManyToOne manyToOneSource, ManyToOne manyToOneBinding, String referencedEntityName) { this.mappingDocument = mappingDocument; this.manyToOneSource = manyToOneSource; this.manyToOneBinding = manyToOneBinding; this.referencedEntityName = referencedEntityName; boolean allNamed = true; for ( RelationalValueSource relationalValueSource : manyToOneSource.getRelationalValueSources() ) { if ( relationalValueSource instanceof ColumnSource ) { if ( ( (ColumnSource) relationalValueSource ).getName() == null ) { allNamed = false; break; } } } this.allColumnsNamed = allNamed; }
private String extractIdClassName(IdentifierSourceAggregatedComposite identifierSource) { if ( identifierSource.getEmbeddableSource().getTypeDescriptor() == null ) { return null; } return identifierSource.getEmbeddableSource().getTypeDescriptor().getName(); }
private String extractIdClassName(IdentifierSourceNonAggregatedComposite identifierSource) { if ( identifierSource.getIdClassSource() == null ) { return null; } if ( identifierSource.getIdClassSource().getTypeDescriptor() == null ) { return null; } return identifierSource.getIdClassSource().getTypeDescriptor().getName(); }
@Override public AttributePath getOwningAttributePath() { return pluralAttributeSource.getAttributePath(); }
@Override public AttributeRole getParent() { return (AttributeRole) super.getParent(); }
@Override public String getPropertyAccessorName() { return jaxbEmbeddedAttributeMapping.getAccess(); }
@Override public EntityNaming getEntityNaming() { return entitySource.getEntityNamingSource(); }
@Override public String inferInLineViewName() { return entityNamingSource.getEntityName() + '#' + (++inLineViewCount); }
@Override public String getParentReferenceAttributeName() { return jaxbEmbeddableMapping.getParent(); }
@Override public String getTypeName() { return entityNamingSource.getTypeName(); }
@Override public AttributeRole append(String property) { return new AttributeRole( this, property ); }
@Override public String toString() { return getFullPath(); }
@Override public String getName() { return jaxbEmbeddedAttributeMapping.getName(); }
@Override public AttributePath getAssociationOwningAttributePath() { return AttributePath.parse( propertyName ); }
@Override public AttributePath getAttributePath() { return pluralAttributeSource.getAttributePath(); }
@Override public AttributePath getParent() { return (AttributePath) super.getParent(); }
@Override public AttributePath getAttributePath() { return AttributePath.parse( propertyName ); }