throw new AnnotationException( "@IdClass class should not have @Id nor @EmbeddedId properties: " + BinderHelper.getPath( propertyHolder, inferredData ) );
throw new AnnotationException( "JoinTable.name() on a @ToOne association has to be explicit: " + BinderHelper.getPath( propertyHolder, inferredData ) );
String subpath = BinderHelper.getPath( propertyHolder, inferredData ); LOG.tracev( "Binding component with path: {0}", subpath ); PropertyHolder subHolder = PropertyHolderBuilder.buildPropertyHolder(
throw new AssertionFailure( "Missing @Any annotation: " + BinderHelper.getPath( propertyHolder, inferredData ) );
+ BinderHelper.getPath( propertyHolder, inferredData ) );
throw new AnnotationException( "@Parent cannot be applied outside an embeddable object: " + BinderHelper.getPath( propertyHolder, inferredData ) ); throw new AnnotationException( "@Column(s) not allowed on a @ManyToOne property: " + BinderHelper.getPath( propertyHolder, inferredData ) ); throw new AnnotationException( "@Column(s) not allowed on a @OneToOne property: " + BinderHelper.getPath( propertyHolder, inferredData ) ); throw new AnnotationException( "@Column(s) not allowed on a @Any property: " + BinderHelper.getPath( propertyHolder, inferredData ) ); throw new AnnotationException( "@OneToMany, @ManyToMany or @ElementCollection cannot be used inside an @Embeddable that is also contained within an @ElementCollection: " + BinderHelper.getPath( propertyHolder, inferredData throw new AnnotationException( "@MapKeyJoinColumn and @MapKeyJoinColumns used on the same property: " + BinderHelper.getPath( propertyHolder, inferredData )
throw new AnnotationException( "@IdClass class should not have @Id nor @EmbeddedId properties: " + BinderHelper.getPath( propertyHolder, inferredData ) );
String subpath = BinderHelper.getPath( propertyHolder, inferredData ); log.trace( "Binding component with path: {}", subpath ); PropertyHolder subHolder = PropertyHolderBuilder.buildPropertyHolder(
Ejb3JoinColumn[] buildDefaultJoinColumnsForXToOne(XProperty property, PropertyData inferredData) { Ejb3JoinColumn[] joinColumns; JoinTable joinTableAnn = propertyHolder.getJoinTable( property ); if ( joinTableAnn != null ) { joinColumns = Ejb3JoinColumn.buildJoinColumns( joinTableAnn.inverseJoinColumns(), null, entityBinder.getSecondaryTables(), propertyHolder, inferredData.getPropertyName(), mappings ); if ( StringHelper.isEmpty( joinTableAnn.name() ) ) { throw new AnnotationException( "JoinTable.name() on a @ToOne association has to be explicit: " + BinderHelper.getPath( propertyHolder, inferredData ) ); } } else { OneToOne oneToOneAnn = property.getAnnotation( OneToOne.class ); String mappedBy = oneToOneAnn != null ? oneToOneAnn.mappedBy() : null; joinColumns = Ejb3JoinColumn.buildJoinColumns( null, mappedBy, entityBinder.getSecondaryTables(), propertyHolder, inferredData.getPropertyName(), mappings ); } return joinColumns; }
throw new AssertionFailure( "Missing @Any annotation: " + BinderHelper.getPath( propertyHolder, inferredData ) );
+ BinderHelper.getPath( propertyHolder, inferredData ) );
throw new AnnotationException( "@Parent cannot be applied outside an embeddable object: " + BinderHelper.getPath( propertyHolder, inferredData ) ); throw new AnnotationException( "@Column(s) not allowed on a @ManyToOne property: " + BinderHelper.getPath( propertyHolder, inferredData ) ); throw new AnnotationException( "@Column(s) not allowed on a @OneToOne property: " + BinderHelper.getPath( propertyHolder, inferredData ) ); throw new AnnotationException( "@Column(s) not allowed on a @Any property: " + BinderHelper.getPath( propertyHolder, inferredData ) ); throw new AnnotationException( "@MapKeyJoinColumn and @MapKeyJoinColumns used on the same property: " + BinderHelper.getPath( propertyHolder, inferredData ) );
throw new AnnotationException( "@IdClass class should not have @Id nor @EmbeddedId properties: " + BinderHelper.getPath( propertyHolder, inferredData ) );
throw new AnnotationException( "@IdClass class should not have @Id nor @EmbeddedId properties: " + BinderHelper.getPath( propertyHolder, inferredData ) );
Ejb3JoinColumn[] buildDefaultJoinColumnsForXToOne(XProperty property, PropertyData inferredData) { Ejb3JoinColumn[] joinColumns; JoinTable joinTableAnn = propertyHolder.getJoinTable( property ); if ( joinTableAnn != null ) { joinColumns = Ejb3JoinColumn.buildJoinColumns( joinTableAnn.inverseJoinColumns(), null, entityBinder.getSecondaryTables(), propertyHolder, inferredData.getPropertyName(), mappings ); if ( StringHelper.isEmpty( joinTableAnn.name() ) ) { throw new AnnotationException( "JoinTable.name() on a @ToOne association has to be explicit: " + BinderHelper.getPath( propertyHolder, inferredData ) ); } } else { OneToOne oneToOneAnn = property.getAnnotation( OneToOne.class ); String mappedBy = oneToOneAnn != null ? oneToOneAnn.mappedBy() : null; joinColumns = Ejb3JoinColumn.buildJoinColumns( null, mappedBy, entityBinder.getSecondaryTables(), propertyHolder, inferredData.getPropertyName(), mappings ); } return joinColumns; }
Ejb3JoinColumn[] buildDefaultJoinColumnsForXToOne(XProperty property, PropertyData inferredData) { Ejb3JoinColumn[] joinColumns; JoinTable joinTableAnn = propertyHolder.getJoinTable( property ); if ( joinTableAnn != null ) { joinColumns = Ejb3JoinColumn.buildJoinColumns( joinTableAnn.inverseJoinColumns(), null, entityBinder.getSecondaryTables(), propertyHolder, inferredData.getPropertyName(), mappings ); if ( StringHelper.isEmpty( joinTableAnn.name() ) ) { throw new AnnotationException( "JoinTable.name() on a @ToOne association has to be explicit: " + BinderHelper.getPath( propertyHolder, inferredData ) ); } } else { OneToOne oneToOneAnn = property.getAnnotation( OneToOne.class ); String mappedBy = oneToOneAnn != null ? oneToOneAnn.mappedBy() : null; joinColumns = Ejb3JoinColumn.buildJoinColumns( null, mappedBy, entityBinder.getSecondaryTables(), propertyHolder, inferredData.getPropertyName(), mappings ); } return joinColumns; }
throw new AnnotationException( "JoinTable.name() on a @ToOne association has to be explicit: " + BinderHelper.getPath( propertyHolder, inferredData ) );
throw new AssertionFailure( "Missing @Any annotation: " + BinderHelper.getPath( propertyHolder, inferredData ) );