@IndexColumn(name = "list_index") private List<String> strings;
final IndexColumn column; if ( ann != null ) { final String sqlType = BinderHelper.isEmptyAnnotationValue( ann.columnDefinition() ) ? null : ann.columnDefinition(); final String name = BinderHelper.isEmptyAnnotationValue( ann.name() ) ? inferredData.getPropertyName() : ann.name(); 0, name, ann.nullable(), false, true, buildingContext ); column.setBase( ann.base() );
@IndexColumn(name = "indexed_index") @AuditMappedBy(mappedBy = "owner", positionMappedBy = "position") private List<ParentOwnedIndexedListJoinColumnBidirectionalRefEdEntity> references;
public static IndexColumn buildColumnFromAnnotation( org.hibernate.annotations.IndexColumn ann, PropertyHolder propertyHolder, PropertyData inferredData, ExtendedMappings mappings ) { IndexColumn column; if ( ann != null ) { String sqlType = BinderHelper.isDefault( ann.columnDefinition() ) ? null : ann.columnDefinition(); String name = BinderHelper.isDefault( ann.name() ) ? inferredData.getPropertyName() : ann.name(); //TODO move it to a getter based system and remove the constructor column = new IndexColumn( false, sqlType, 0, 0, 0, name, ann.nullable(), false, true, true, null, null, propertyHolder, mappings ); column.setBase( ann.base() ); } else { column = new IndexColumn( true, null, 0, 0, 0, null, true, false, true, true, null, null, propertyHolder, mappings ); } return column; } }
@IndexColumn(name = "indexed_index") @AuditMappedBy(mappedBy = "owner", positionMappedBy = "position") private List<IndexedListJoinColumnBidirectionalRefEdEntity> references;
public static IndexColumn buildColumnFromAnnotation( org.hibernate.annotations.IndexColumn ann, PropertyHolder propertyHolder, PropertyData inferredData, Mappings mappings) { IndexColumn column; if ( ann != null ) { String sqlType = BinderHelper.isEmptyAnnotationValue( ann.columnDefinition() ) ? null : ann.columnDefinition(); String name = BinderHelper.isEmptyAnnotationValue( ann.name() ) ? inferredData.getPropertyName() : ann.name(); //TODO move it to a getter based system and remove the constructor column = new IndexColumn( false, sqlType, 0, 0, 0, name, ann.nullable(), false, true, true, null, null, propertyHolder, mappings ); column.setBase( ann.base() ); } else { column = new IndexColumn( true, null, 0, 0, 0, null, true, false, true, true, null, null, propertyHolder, mappings ); } return column; } }
/** * Get the payment schedule entries for this object. */ @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, orphanRemoval = true, mappedBy = "auftrag") @IndexColumn(name = "number", base = 1) public List<PaymentScheduleDO> getPaymentSchedules() { return this.paymentSchedules; }
public static IndexColumn buildColumnFromAnnotation( org.hibernate.annotations.IndexColumn ann, PropertyHolder propertyHolder, PropertyData inferredData, Mappings mappings) { IndexColumn column; if ( ann != null ) { String sqlType = BinderHelper.isEmptyAnnotationValue( ann.columnDefinition() ) ? null : ann.columnDefinition(); String name = BinderHelper.isEmptyAnnotationValue( ann.name() ) ? inferredData.getPropertyName() : ann.name(); //TODO move it to a getter based system and remove the constructor column = new IndexColumn( false, sqlType, 0, 0, 0, name, ann.nullable(), false, true, true, null, null, propertyHolder, mappings ); column.setBase( ann.base() ); } else { column = new IndexColumn( true, null, 0, 0, 0, null, true, false, true, true, null, null, propertyHolder, mappings ); } return column; } }
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "eingangsrechnung", targetEntity = EingangsrechnungsPositionDO.class) @IndexColumn(name = "number", base = 1) @Override public List<EingangsrechnungsPositionDO> getPositionen() { return this.positionen; }
public static IndexColumn buildColumnFromAnnotation( org.hibernate.annotations.IndexColumn ann, PropertyHolder propertyHolder, PropertyData inferredData, ExtendedMappings mappings ) { IndexColumn column; if ( ann != null ) { String sqlType = BinderHelper.isDefault( ann.columnDefinition() ) ? null : ann.columnDefinition(); String name = BinderHelper.isDefault( ann.name() ) ? inferredData.getPropertyName() : ann.name(); //TODO move it to a getter based system and remove the constructor column = new IndexColumn( false, sqlType, 0, 0, 0, name, ann.nullable(), false, true, true, null, null, propertyHolder, mappings ); column.setBase( ann.base() ); } else { column = new IndexColumn( true, null, 0, 0, 0, null, true, false, true, true, null, null, propertyHolder, mappings ); } return column; } }
@OneToMany( mappedBy = "parent", cascade = CascadeType.ALL ) @IndexColumn( name = "sequence_index" ) public List<SequenceChunk> getSequenceChunks() { return sequenceChunks; }
final IndexColumn column; if ( ann != null ) { final String sqlType = BinderHelper.isEmptyAnnotationValue( ann.columnDefinition() ) ? null : ann.columnDefinition(); final String name = BinderHelper.isEmptyAnnotationValue( ann.name() ) ? inferredData.getPropertyName() : ann.name(); 0, name, ann.nullable(), false, true, buildingContext ); column.setBase( ann.base() );
/** * Get the contact entries for this object. */ @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, orphanRemoval = true, mappedBy = "contact", targetEntity = ContactEntryDO.class) @IndexColumn(name = "number", base = 1) public Set<ContactEntryDO> getContactEntries() { return this.contactEntries; }
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "rechnung") @IndexColumn(name = "number", base = 1) @Override public List<RechnungsPositionDO> getPositionen() { return this.positionen; }
@OneToMany( mappedBy = "parent", orphanRemoval = true) @Cascade( value = {org.hibernate.annotations.CascadeType.PERSIST, org.hibernate.annotations.CascadeType.DELETE, org.hibernate.annotations.CascadeType.SAVE_UPDATE} ) @IndexColumn( name = "sequence_index" ) public List<SequenceChunk> getSequenceChunks() { return sequenceChunks; }
@OneToMany( mappedBy = "parent", orphanRemoval = true) @Cascade( value = {org.hibernate.annotations.CascadeType.PERSIST, org.hibernate.annotations.CascadeType.DELETE, org.hibernate.annotations.CascadeType.SAVE_UPDATE} ) @IndexColumn( name = "sequence_index" ) public List<SequenceChunk> getSequenceChunks() { return sequenceChunks; }
@OneToMany(cascade=CascadeType.ALL) @JoinColumn(name="parent_id") @IndexColumn(name="pos") @Cache(usage=CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region="pages") public List<ContentPage> getChildren() { return children; }
@Override @ManyToMany(cascade={CascadeType.PERSIST, CascadeType.MERGE}, fetch=FetchType.LAZY, targetEntity = JpaProduct.class) @JoinTable(name = DBNamespace.TABLE_PREFIX + "product_category_product") @IndexColumn(name = "product_position") @org.hibernate.annotations.LazyCollection(org.hibernate.annotations.LazyCollectionOption.EXTRA) public List<ProductData> getProducts() { return super.getProducts(); }
@CollectionOfElements(fetch = FetchType.LAZY) @JoinTable(name = "FLOWREF_PARAMNAMES") @IndexColumn(name = "idx") @ForeignKey(name = "FK_PARAMNAMES_id_FLOWREF") public List<StepParameter> getParameterNames() { return this.parameterNames; }
@CollectionOfElements(fetch = FetchType.LAZY) @JoinTable(name = "FLOW_PARAMS") @IndexColumn(name = "idx") @ForeignKey(name = "FK_FLOWPARAMS_id_FLOW") public List<String> getParameters() { return this.parameters; }