private boolean isCascadeAll() { OneToMany onetomany = getAnnotation(OneToMany.class); if( onetomany != null ) { return hasCascadeAll(onetomany.cascade()); } OneToOne onetoone = getAnnotation(OneToOne.class); if( onetoone != null ) { return hasCascadeAll(onetoone.cascade()); } ManyToOne manyToOne = getAnnotation(ManyToOne.class); if( manyToOne != null ) { return hasCascadeAll(manyToOne.cascade()); } // CollectionOfElements is a 'default' cascade all if( getAnnotation(CollectionOfElements.class) != null ) { return true; } return false; }
/** * <p>Getter for the field <code>classpaths</code>.</p> * * @return a {@link java.util.SortedSet} object. */ @CollectionOfElements @JoinTable( name="RUNNER_CLASSPATHS", joinColumns={@JoinColumn(name="RUNNER_ID")} ) @Column(name = "elt", nullable = true, length=255) @Sort(type = SortType.COMPARATOR, comparator = ClasspathComparator.class) public SortedSet<String> getClasspaths() { return classpaths; }
/** * <p>Getter for the field <code>fixtureClasspaths</code>.</p> * * @return a {@link java.util.SortedSet} object. */ @CollectionOfElements @JoinTable( name="SUT_FIXTURE_CLASSPATHS", joinColumns={@JoinColumn(name="SUT_ID")} ) @Column(name = "elt", nullable = true, length=255) @Sort(type = SortType.COMPARATOR, comparator = ClasspathComparator.class) public SortedSet<String> getFixtureClasspaths() { return fixtureClasspaths; }
/** * <p>Getter for the field <code>sutClasspaths</code>.</p> * * @return a {@link java.util.SortedSet} object. */ @CollectionOfElements @JoinTable( name="SUT_CLASSPATHS", joinColumns={@JoinColumn(name="SUT_ID")} ) @Column(name = "elt", nullable = true, length=255) @Sort(type = SortType.COMPARATOR, comparator = ClasspathComparator.class) public SortedSet<String> getSutClasspaths() { return sutClasspaths; }
@CollectionOfElements @JoinTable( name="RUNNER_CLASSPATHS", joinColumns={@JoinColumn(name="RUNNER_ID")} ) @Column(name = "elt", nullable = true, length=255) @Sort(type = SortType.COMPARATOR, comparator = ClasspathComparator.class) public SortedSet<String> getClasspaths() { return classpaths; }
@CollectionOfElements @JoinTable( name="SUT_FIXTURE_CLASSPATHS", joinColumns={@JoinColumn(name="SUT_ID")} ) @Column(name = "elt", nullable = true, length=255) @Sort(type = SortType.COMPARATOR, comparator = ClasspathComparator.class) public SortedSet<String> getFixtureClasspaths() { return fixtureClasspaths; }
@CollectionOfElements @JoinTable( name="SUT_CLASSPATHS", joinColumns={@JoinColumn(name="SUT_ID")} ) @Column(name = "elt", nullable = true, length=255) @Sort(type = SortType.COMPARATOR, comparator = ClasspathComparator.class) public SortedSet<String> getSutClasspaths() { return sutClasspaths; }
/** * @return Mapping of samples to the security level for each sample */ @CollectionOfElements(fetch = FetchType.LAZY) @MapKeyManyToMany(joinColumns = @JoinColumn(name = "sample_id", nullable = false)) @JoinTable(name = "access_profile_samples", joinColumns = @JoinColumn(name = "access_profile_id")) @Column(name = "security_level") @Enumerated(EnumType.STRING) @Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE, org.hibernate.annotations.CascadeType.DELETE }) public Map<Sample, SampleSecurityLevel> getSampleSecurityLevels() { return this.sampleSecurityLevels; }
@CollectionOfElements(targetElement = String.class) @JoinTable(name = "list_meta_field_values", joinColumns = @JoinColumn(name = "meta_field_value_id") ) @Column(name = "list_value") public List<String> getValue () { return value; }
@CollectionOfElements @OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="purchaseOrder") @OrderBy ( clause = "id desc" ) public Set<OrderProcessDTO> getOrderProcesses() { return this.orderProcesses; }
@CollectionOfElements(fetch = FetchType.EAGER) @JoinTable(name = "price_model_attribute", joinColumns = @JoinColumn(name = "price_model_id")) @MapKey(columns = @Column(name = "attribute_name", nullable = true, length = 255)) @Column(name = "attribute_value", nullable = true, length = 255) @Sort(type = SortType.NATURAL) @Fetch(FetchMode.SELECT) public SortedMap<String, String> getAttributes() { return attributes; }
@CollectionOfElements @JoinTable(name = "roles_permissions") @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) public Set<String> getPermissions() { return permissions; }
@CollectionOfElements public List<String> getChosenMimeTypes() { return this.chosenMimeTypes; }