当前位置: 首页>>代码示例>>Java>>正文


Java CollectionOfElements类代码示例

本文整理汇总了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;
}
 
开发者ID:equella,项目名称:Equella,代码行数:26,代码来源:Property.java

示例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;
   }
 
开发者ID:strator-dev,项目名称:greenpepper,代码行数:14,代码来源:Runner.java

示例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;
   }
 
开发者ID:strator-dev,项目名称:greenpepper,代码行数:14,代码来源:SystemUnderTest.java

示例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;
   }
 
开发者ID:strator-dev,项目名称:greenpepper,代码行数:14,代码来源:SystemUnderTest.java

示例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;
   }
 
开发者ID:greenpeppersoftware,项目名称:greenpepper3,代码行数:9,代码来源:Runner.java

示例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;
   }
 
开发者ID:greenpeppersoftware,项目名称:greenpepper3,代码行数:9,代码来源:SystemUnderTest.java

示例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;
   }
 
开发者ID:greenpeppersoftware,项目名称:greenpepper3,代码行数:9,代码来源:SystemUnderTest.java

示例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;
}
 
开发者ID:qoswork,项目名称:opennmszh,代码行数:8,代码来源:NCSComponent.java

示例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;
}
 
开发者ID:qoswork,项目名称:opennmszh,代码行数:14,代码来源:OnmsAlarm.java

示例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;
}
 
开发者ID:qoswork,项目名称:opennmszh,代码行数:12,代码来源:OnmsCategory.java

示例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;
}
 
开发者ID:qoswork,项目名称:opennmszh,代码行数:13,代码来源:OnmsLocationMonitor.java

示例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;
}
 
开发者ID:NCIP,项目名称:caarray,代码行数:13,代码来源:AccessProfile.java

示例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;
}
 
开发者ID:maxdelo77,项目名称:replyit-master-3.2-final,代码行数:9,代码来源:ListMetaFieldValue.java

示例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;
}
 
开发者ID:maxdelo77,项目名称:replyit-master-3.2-final,代码行数:9,代码来源:OrderDTO.java

示例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;
}
 
开发者ID:maxdelo77,项目名称:replyit-master-3.2-final,代码行数:10,代码来源:PriceModelDTO.java


注:本文中的org.hibernate.annotations.CollectionOfElements类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。