idColumn.setNullable(false);
&& inferredData.getClassOrElement().isPrimitive() && !inferredData.getProperty().isArray() ) { column.setNullable( false );
Ejb3Column column = new Ejb3Column(); column.setImplicit( false ); column.setNullable( true ); column.setLength( Ejb3Column.DEFAULT_COLUMN_LENGTH ); column.setLogicalColumnName( Collection.DEFAULT_KEY_COLUMN_NAME );
BinderHelper.getRelativePath( propertyHolder, inferredData.getPropertyName() ) ); column.setNullable( col.nullable()
column.setImplicit( false ); column.setNullable( true ); column.setLength( Ejb3Column.DEFAULT_COLUMN_LENGTH ); column.setLogicalColumnName( Collection.DEFAULT_ELEMENT_COLUMN_NAME );
idColumn.setNullable(false);
&& inferredData.getClassOrElement().isPrimitive() && !inferredData.getProperty().isArray() ) { column.setNullable( false );
column.setImplicit( false ); column.setNullable( true ); column.setLength( Ejb3Column.DEFAULT_COLUMN_LENGTH ); column.setLogicalColumnName( Collection.DEFAULT_ELEMENT_COLUMN_NAME );
Ejb3Column column = new Ejb3Column(); column.setImplicit( false ); column.setNullable( true ); column.setLength( Ejb3Column.DEFAULT_COLUMN_LENGTH ); column.setLogicalColumnName( Collection.DEFAULT_KEY_COLUMN_NAME );
BinderHelper.getRelativePath( propertyHolder, inferredData.getPropertyName() ) ); column.setNullable( col.nullable()
idColumn.setNullable(false);
idColumn.setNullable(false);
key.setTypeName( null ); Ejb3Column.checkPropertyConsistency( joinColumns, collValue.getOwnerEntityName() ); key.setNullable( joinColumns.length == 0 || joinColumns[0].isNullable() ); key.setUpdateable( joinColumns.length == 0 || joinColumns[0].isUpdatable() ); key.setCascadeDeleteEnabled( cascadeDeleteEnabled );
private static Ejb3Column[] buildImplicitColumn( PropertyData inferredData, Map<String, Join> secondaryTables, PropertyHolder propertyHolder, Nullability nullability, ExtendedMappings mappings ) { Ejb3Column[] columns; columns = new Ejb3Column[1]; Ejb3Column column = new Ejb3Column(); column.setImplicit( false ); //not following the spec but more clean if ( nullability != Nullability.FORCED_NULL && inferredData.getClassOrElement().isPrimitive() && ! inferredData.getProperty().isArray() ) { column.setNullable( false ); } column.setLength( DEFAULT_COLUMN_LENGTH ); column.setPropertyName( BinderHelper.getRelativePath( propertyHolder, inferredData.getPropertyName() ) ); column.setPropertyHolder( propertyHolder ); column.setJoins( secondaryTables ); column.setMappings( mappings ); column.bind(); columns[0] = column; return columns; }
idColumn.setNullable(false);
&& inferredData.getClassOrElement().isPrimitive() && !inferredData.getProperty().isArray() ) { column.setNullable( false );
&& inferredData.getClassOrElement().isPrimitive() && !inferredData.getProperty().isArray() ) { column.setNullable( false );
&& inferredData.getClassOrElement().isPrimitive() && !inferredData.getProperty().isArray() ) { column.setNullable( false );
BinderHelper.getRelativePath( propertyHolder, inferredData.getPropertyName() ) ); column.setNullable( col.nullable()
BinderHelper.getRelativePath( propertyHolder, inferredData.getPropertyName() ) ); column.setNullable( col.nullable()