Java 类org.hibernate.annotations.CollectionOfElements 实例源码

项目:Equella    文件:Property.java   
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;
}
项目:greenpepper    文件:Runner.java   
/**
    * <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;
   }
项目:greenpepper    文件:SystemUnderTest.java   
/**
    * <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;
   }
项目:greenpepper    文件:SystemUnderTest.java   
/**
    * <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;
   }
项目:greenpepper3    文件:Runner.java   
@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;
   }
项目:greenpepper3    文件:SystemUnderTest.java   
@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;
   }
项目:greenpepper3    文件:SystemUnderTest.java   
@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;
   }
项目:caarray    文件:AccessProfile.java   
/**
 * @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;
}
项目:replyit-master-3.2-final    文件:ListMetaFieldValue.java   
@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;
}
项目:replyit-master-3.2-final    文件:OrderDTO.java   
@CollectionOfElements
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="purchaseOrder")
@OrderBy (
        clause = "id desc"
)
public Set<OrderProcessDTO> getOrderProcesses() {
    return this.orderProcesses;
}
项目:replyit-master-3.2-final    文件:PriceModelDTO.java   
@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;
}
项目:java-course-ee    文件:Role.java   
@CollectionOfElements
@JoinTable(name = "roles_permissions")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public Set<String> getPermissions() {
    return permissions;
}
项目:ridire-cpi    文件:Job.java   
@CollectionOfElements
public List<String> getChosenMimeTypes() {
    return this.chosenMimeTypes;
}