@Override public AttributePath append(String property) { return new AttributePath( this, property ); }
public static AttributePath parse(String path) { if ( path == null ) { return null; } AttributePath attributePath = new AttributePath(); for ( String part : path.split( "\\." ) ) { attributePath = attributePath.append( part ); } return attributePath; } }
protected AbstractEntitySourceImpl(MappingDocument sourceMappingDocument, JaxbHbmEntityBaseDefinition jaxbEntityMapping) { super( sourceMappingDocument ); this.jaxbEntityMapping = jaxbEntityMapping; this.entityNamingSource = extractEntityNamingSource( sourceMappingDocument, jaxbEntityMapping ); this.attributePathBase = new AttributePath(); this.attributeRoleBase = new AttributeRole( entityNamingSource.getEntityName() ); this.tuplizerClassMap = extractTuplizers( jaxbEntityMapping ); this.filterSources = buildFilterSources(); for ( JaxbHbmFetchProfileType jaxbFetchProfile : jaxbEntityMapping.getFetchProfile() ) { FetchProfileBinder.processFetchProfile( sourceMappingDocument, jaxbFetchProfile, entityNamingSource.getClassName() != null ? entityNamingSource.getClassName() : entityNamingSource.getEntityName() ); } this.toolingHintContext = Helper.collectToolingHints( sourceMappingDocument.getToolingHintContext(), jaxbEntityMapping ); }
@Override public AttributePath append(String property) { return new AttributePath( this, property ); }
public static AttributePath parse(String path) { if ( path == null ) { return null; } AttributePath attributePath = new AttributePath(); for ( String part : path.split( "\\." ) ) { attributePath = attributePath.append( part ); } return attributePath; } }
@Override public AttributePath getPluralAttributePath() { return new AttributePath().append("booksMap"); } });
@Override public AttributePath getPluralAttributePath() { return new AttributePath().append("booksOrdered"); }
protected AbstractEntitySourceImpl(MappingDocument sourceMappingDocument, JaxbHbmEntityBaseDefinition jaxbEntityMapping) { super( sourceMappingDocument ); this.jaxbEntityMapping = jaxbEntityMapping; this.entityNamingSource = extractEntityNamingSource( sourceMappingDocument, jaxbEntityMapping ); this.attributePathBase = new AttributePath(); this.attributeRoleBase = new AttributeRole( entityNamingSource.getEntityName() ); this.tuplizerClassMap = extractTuplizers( jaxbEntityMapping ); this.filterSources = buildFilterSources(); for ( JaxbHbmFetchProfileType jaxbFetchProfile : jaxbEntityMapping.getFetchProfile() ) { FetchProfileBinder.processFetchProfile( sourceMappingDocument, jaxbFetchProfile, entityNamingSource.getClassName() != null ? entityNamingSource.getClassName() : entityNamingSource.getEntityName() ); } this.toolingHintContext = Helper.collectToolingHints( sourceMappingDocument.getToolingHintContext(), jaxbEntityMapping ); }