本文整理汇总了Java中org.hibernate.annotations.CollectionOfElements类的典型用法代码示例。如果您正苦于以下问题:Java CollectionOfElements类的具体用法?Java CollectionOfElements怎么用?Java CollectionOfElements使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CollectionOfElements类属于org.hibernate.annotations包,在下文中一共展示了CollectionOfElements类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isCascadeAll
import org.hibernate.annotations.CollectionOfElements; //导入依赖的package包/类
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;
}
示例2: getClasspaths
import org.hibernate.annotations.CollectionOfElements; //导入依赖的package包/类
/**
* <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;
}
示例3: getFixtureClasspaths
import org.hibernate.annotations.CollectionOfElements; //导入依赖的package包/类
/**
* <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;
}
示例4: getSutClasspaths
import org.hibernate.annotations.CollectionOfElements; //导入依赖的package包/类
/**
* <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;
}
示例5: getClasspaths
import org.hibernate.annotations.CollectionOfElements; //导入依赖的package包/类
@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;
}
示例6: getFixtureClasspaths
import org.hibernate.annotations.CollectionOfElements; //导入依赖的package包/类
@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;
}
示例7: getSutClasspaths
import org.hibernate.annotations.CollectionOfElements; //导入依赖的package包/类
@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;
}
示例8: getAttributes
import org.hibernate.annotations.CollectionOfElements; //导入依赖的package包/类
@CollectionOfElements
@JoinTable(name="ncs_attributes")
@MapKey([email protected](name="key"))
@Column(name="value", nullable=false)
public Map<String, String> getAttributes() {
return m_attributes;
}
示例9: getDetails
import org.hibernate.annotations.CollectionOfElements; //导入依赖的package包/类
/**
* <p>getDetails</p>
*
* @return a {@link java.util.Map} object.
*/
@XmlTransient
@CollectionOfElements
@JoinTable(name="alarm_attributes", joinColumns = @JoinColumn(name="alarmId"))
@MapKey([email protected](name="attribute"))
@Column(name="attributeValue", nullable=false)
public Map<String, String> getDetails() {
return m_details;
}
示例10: getAuthorizedGroups
import org.hibernate.annotations.CollectionOfElements; //导入依赖的package包/类
/**
* <p>getAuthorizedGroups</p>
*
* @return a {@link java.util.Set} object.
*/
@CollectionOfElements
@JoinTable(name="category_group", [email protected](name="categoryId"))
@Column(name="groupId", nullable=false, length=64)
public Set<String> getAuthorizedGroups() {
return m_authorizedGroups;
}
示例11: getDetails
import org.hibernate.annotations.CollectionOfElements; //导入依赖的package包/类
/**
* <p>getDetails</p>
*
* @return a {@link java.util.Map} object.
*/
@CollectionOfElements
@JoinTable(name="location_monitor_details", joinColumns = @JoinColumn(name="locationMonitorId"))
@MapKey([email protected](name="property"))
@Column(name="propertyValue", nullable=false)
public Map<String, String> getDetails() {
return m_details;
}
示例12: getSampleSecurityLevels
import org.hibernate.annotations.CollectionOfElements; //导入依赖的package包/类
/**
* @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;
}
示例13: getValue
import org.hibernate.annotations.CollectionOfElements; //导入依赖的package包/类
@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;
}
示例14: getOrderProcesses
import org.hibernate.annotations.CollectionOfElements; //导入依赖的package包/类
@CollectionOfElements
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="purchaseOrder")
@OrderBy (
clause = "id desc"
)
public Set<OrderProcessDTO> getOrderProcesses() {
return this.orderProcesses;
}
示例15: getAttributes
import org.hibernate.annotations.CollectionOfElements; //导入依赖的package包/类
@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;
}