for ( Object attribute : rootEntitySource.jaxbEntityMapping().getCompositeId().getKeyPropertyOrKeyManyToOne() ) { if ( JaxbHbmCompositeKeyBasicAttributeType.class.isInstance( attribute ) ) { attributeSources.add(
public IdentifierSourceAggregatedCompositeImpl(final RootEntitySourceImpl rootEntitySource) { final EmbeddedAttributeMappingAdapterAggregatedCompositeId compositeIdAdapter = new EmbeddedAttributeMappingAdapterAggregatedCompositeId( rootEntitySource ); this.attributeSource = new SingularAttributeSourceAggregatedCompositeIdentifierImpl( rootEntitySource.sourceMappingDocument(), compositeIdAdapter ); this.generatorDefinition = EntityHierarchySourceImpl.interpretGeneratorDefinition( rootEntitySource.sourceMappingDocument(), rootEntitySource.getEntityNamingSource(), rootEntitySource.jaxbEntityMapping().getCompositeId().getGenerator() ); this.toolingHintContext = Helper.collectToolingHints( rootEntitySource.getToolingHintContext(), rootEntitySource.jaxbEntityMapping().getCompositeId() ); }
rootEntitySource.sourceMappingDocument(), rootEntitySource.getEntityNamingSource(), rootEntitySource.jaxbEntityMapping().getCompositeId().getGenerator() ); rootEntitySource.jaxbEntityMapping().getCompositeId().getKeyPropertyOrKeyManyToOne() ); rootEntitySource.jaxbEntityMapping().getCompositeId() ); rootEntitySource.jaxbEntityMapping().getCompositeId() );
private static IdentifierSource interpretIdentifierSource(RootEntitySourceImpl rootEntitySource) { if ( rootEntitySource.jaxbEntityMapping().getId() == null && rootEntitySource.jaxbEntityMapping().getCompositeId() == null ) { throw new MappingException( String.format( if ( StringHelper.isEmpty( rootEntitySource.jaxbEntityMapping().getCompositeId().getName() ) ) { if ( rootEntitySource.jaxbEntityMapping().getCompositeId().isMapped() && StringHelper.isEmpty( rootEntitySource.jaxbEntityMapping().getCompositeId().getClazz() ) ) { throw new MappingException( "mapped composite identifier must name component class to use.", if ( rootEntitySource.jaxbEntityMapping().getCompositeId().isMapped() ) { throw new MappingException( "cannot combine mapped=\"true\" with specified name",
private EmbeddedAttributeMappingAdapterAggregatedCompositeId( RootEntitySourceImpl rootEntitySource) { this.rootEntitySource = rootEntitySource; this.jaxbCompositeIdMapping = rootEntitySource.jaxbEntityMapping().getCompositeId(); this.idAttributeRole = rootEntitySource.getAttributeRoleBase().append( jaxbCompositeIdMapping.getName() ); this.idAttributePath = rootEntitySource.getAttributePathBase().append( jaxbCompositeIdMapping.getName() ); this.toolingHintContext = Helper.collectToolingHints( rootEntitySource.getToolingHintContext(), jaxbCompositeIdMapping ); }
for ( Object attribute : rootEntitySource.jaxbEntityMapping().getCompositeId().getKeyPropertyOrKeyManyToOne() ) { if ( JaxbHbmCompositeKeyBasicAttributeType.class.isInstance( attribute ) ) { attributeSources.add(
public IdentifierSourceAggregatedCompositeImpl(final RootEntitySourceImpl rootEntitySource) { final EmbeddedAttributeMappingAdapterAggregatedCompositeId compositeIdAdapter = new EmbeddedAttributeMappingAdapterAggregatedCompositeId( rootEntitySource ); this.attributeSource = new SingularAttributeSourceAggregatedCompositeIdentifierImpl( rootEntitySource.sourceMappingDocument(), compositeIdAdapter ); this.generatorDefinition = EntityHierarchySourceImpl.interpretGeneratorDefinition( rootEntitySource.sourceMappingDocument(), rootEntitySource.getEntityNamingSource(), rootEntitySource.jaxbEntityMapping().getCompositeId().getGenerator() ); this.toolingHintContext = Helper.collectToolingHints( rootEntitySource.getToolingHintContext(), rootEntitySource.jaxbEntityMapping().getCompositeId() ); }
rootEntitySource.sourceMappingDocument(), rootEntitySource.getEntityNamingSource(), rootEntitySource.jaxbEntityMapping().getCompositeId().getGenerator() ); rootEntitySource.jaxbEntityMapping().getCompositeId().getKeyPropertyOrKeyManyToOne() ); rootEntitySource.jaxbEntityMapping().getCompositeId() ); rootEntitySource.jaxbEntityMapping().getCompositeId() );
private static IdentifierSource interpretIdentifierSource(RootEntitySourceImpl rootEntitySource) { if ( rootEntitySource.jaxbEntityMapping().getId() == null && rootEntitySource.jaxbEntityMapping().getCompositeId() == null ) { throw new MappingException( String.format( if ( StringHelper.isEmpty( rootEntitySource.jaxbEntityMapping().getCompositeId().getName() ) ) { if ( rootEntitySource.jaxbEntityMapping().getCompositeId().isMapped() && StringHelper.isEmpty( rootEntitySource.jaxbEntityMapping().getCompositeId().getClazz() ) ) { throw new MappingException( "mapped composite identifier must name component class to use.", if ( rootEntitySource.jaxbEntityMapping().getCompositeId().isMapped() ) { throw new MappingException( "cannot combine mapped=\"true\" with specified name",
private EmbeddedAttributeMappingAdapterAggregatedCompositeId( RootEntitySourceImpl rootEntitySource) { this.rootEntitySource = rootEntitySource; this.jaxbCompositeIdMapping = rootEntitySource.jaxbEntityMapping().getCompositeId(); this.idAttributeRole = rootEntitySource.getAttributeRoleBase().append( jaxbCompositeIdMapping.getName() ); this.idAttributePath = rootEntitySource.getAttributePathBase().append( jaxbCompositeIdMapping.getName() ); this.toolingHintContext = Helper.collectToolingHints( rootEntitySource.getToolingHintContext(), jaxbCompositeIdMapping ); }