public IdentifierSourceSimpleImpl(RootEntitySourceImpl rootEntitySource) { final JaxbHbmRootEntityType jaxbEntityMapping = rootEntitySource.jaxbEntityMapping(); this.attribute = new SingularIdentifierAttributeSourceImpl( rootEntitySource.sourceMappingDocument(), rootEntitySource, jaxbEntityMapping.getId() ); this.generatorDefinition = EntityHierarchySourceImpl.interpretGeneratorDefinition( rootEntitySource.sourceMappingDocument(), rootEntitySource.getEntityNamingSource(), rootEntitySource.jaxbEntityMapping().getId().getGenerator() ); this.unsavedValue = jaxbEntityMapping.getId().getUnsavedValue(); this.toolingHintContext = Helper.collectToolingHints( rootEntitySource.getToolingHintContext(), jaxbEntityMapping.getId() ); }
private static IdentifierSource interpretIdentifierSource(RootEntitySourceImpl rootEntitySource) { if ( rootEntitySource.jaxbEntityMapping().getId() == null && rootEntitySource.jaxbEntityMapping().getCompositeId() == null ) { throw new MappingException( if ( rootEntitySource.jaxbEntityMapping().getId() != null ) { return new IdentifierSourceSimpleImpl( rootEntitySource );
public IdentifierSourceSimpleImpl(RootEntitySourceImpl rootEntitySource) { final JaxbHbmRootEntityType jaxbEntityMapping = rootEntitySource.jaxbEntityMapping(); this.attribute = new SingularIdentifierAttributeSourceImpl( rootEntitySource.sourceMappingDocument(), rootEntitySource, jaxbEntityMapping.getId() ); this.generatorDefinition = EntityHierarchySourceImpl.interpretGeneratorDefinition( rootEntitySource.sourceMappingDocument(), rootEntitySource.getEntityNamingSource(), rootEntitySource.jaxbEntityMapping().getId().getGenerator() ); this.unsavedValue = jaxbEntityMapping.getId().getUnsavedValue(); this.toolingHintContext = Helper.collectToolingHints( rootEntitySource.getToolingHintContext(), jaxbEntityMapping.getId() ); }
private static IdentifierSource interpretIdentifierSource(RootEntitySourceImpl rootEntitySource) { if ( rootEntitySource.jaxbEntityMapping().getId() == null && rootEntitySource.jaxbEntityMapping().getCompositeId() == null ) { throw new MappingException( if ( rootEntitySource.jaxbEntityMapping().getId() != null ) { return new IdentifierSourceSimpleImpl( rootEntitySource );