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

项目:screensaver    文件:Cell.java   
@ManyToMany(fetch = FetchType.LAZY, cascade = { CascadeType.PERSIST, CascadeType.MERGE })
@JoinTable(name = "cellUpdateActivity",
           joinColumns = @JoinColumn(name = "cellId", nullable = false, updatable = false),
           inverseJoinColumns = @JoinColumn(name = "updateActivityId", nullable = false, updatable = false, unique = true))
@org.hibernate.annotations.Cascade(value = { org.hibernate.annotations.CascadeType.SAVE_UPDATE })
@Sort(type = SortType.NATURAL)
@ToMany(singularPropertyName = "updateActivity", hasNonconventionalMutation = true /*
                                                                                    * model testing framework doesn't
                                                                                    * understand this is a containment
                                                                                    * relationship, and so requires
                                                                                    * addUpdateActivity() method
                                                                                    */)
@Override
public SortedSet<AdministrativeActivity> getUpdateActivities()
{
  return _updateActivities;
}
项目:screensaver    文件:Copy.java   
@ManyToMany(fetch = FetchType.LAZY, cascade = { CascadeType.PERSIST, CascadeType.MERGE })
@JoinTable(name = "copyUpdateActivity",
           joinColumns = @JoinColumn(name = "copyId", nullable = false, updatable = false),
           inverseJoinColumns = @JoinColumn(name = "updateActivityId", nullable = false, updatable = false, unique = true))
@org.hibernate.annotations.Cascade(value = { org.hibernate.annotations.CascadeType.SAVE_UPDATE })
@Sort(type = SortType.NATURAL)
@ToMany(singularPropertyName = "updateActivity", hasNonconventionalMutation = true /*
                                                                                    * model testing framework doesn't
                                                                                    * understand this is a containment
                                                                                    * relationship, and so requires
                                                                                    * addUpdateActivity() method
                                                                                    */)
@Override
public SortedSet<AdministrativeActivity> getUpdateActivities()
{
  return _updateActivities;
}
项目:screensaver    文件:ScreeningRoomUser.java   
/**
 * Get the set of checklist item events.
 * @return the checklist item events
 */
@OneToMany(mappedBy = "screeningRoomUser", cascade = { CascadeType.ALL }, orphanRemoval = true)
@Sort(type=SortType.NATURAL)
public SortedSet<ChecklistItemEvent> getChecklistItemEvents()
{
  return _checklistItemEvents;
}
项目:screensaver    文件:ScreeningRoomUser.java   
@OneToMany(mappedBy = "servicedUser")
@edu.harvard.med.screensaver.model.annotations.ToMany(singularPropertyName = "serviceActivity")
@Sort(type = SortType.NATURAL)
public SortedSet<ServiceActivity> getServiceActivities()
{
  return _serviceActivities;
}
项目:helium    文件:ExpedientTipus.java   
@OneToMany(mappedBy="expedientTipus", cascade={CascadeType.ALL}, fetch=FetchType.EAGER)
@Fetch(value = FetchMode.SUBSELECT)
@MapKey(name = "any")
@Sort(type = SortType.NATURAL)
public SortedMap<Integer, SequenciaAny> getSequenciaAny() {
    return sequenciaAny;
}
项目:helium    文件:ExpedientTipus.java   
@OneToMany(mappedBy="expedientTipus", cascade={CascadeType.ALL}, fetch=FetchType.EAGER)
@Fetch(value = FetchMode.SUBSELECT)
@MapKey(name = "any")
@Sort(type = SortType.NATURAL)
public SortedMap<Integer, SequenciaDefaultAny> getSequenciaDefaultAny() {
    return sequenciaDefaultAny;
}
项目: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;
   }
项目:greenpepper    文件:Specification.java   
/**
    * <p>Getter for the field <code>targetedSystemUnderTests</code>.</p>
    *
    * @return a {@link java.util.SortedSet} object.
    */
   @ManyToMany( targetEntity= SystemUnderTest.class, cascade={CascadeType.PERSIST, CascadeType.MERGE} )
   @JoinTable( name="SUT_SPECIFICATION", joinColumns={@JoinColumn(name="SPECIFICATION_ID")}, inverseJoinColumns={@JoinColumn(name="SUT_ID")} )
@Sort(type=SortType.COMPARATOR, comparator=SystemUnderTestByNameComparator.class)
   public SortedSet<SystemUnderTest> getTargetedSystemUnderTests()
   {
       return targetedSystemUnderTests;
   }
项目:gisgraphy    文件:OpenStreetMap.java   
/**
 * @return the houseNumbers associated to that street
 */
@OneToMany(cascade = { CascadeType.ALL }, mappedBy = "street")
   @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
   @Fetch(FetchMode.SELECT)
@Sort(comparator=HouseNumberComparator.class,type=SortType.COMPARATOR)
public SortedSet<HouseNumber> getHouseNumbers() {
    return houseNumbers;
}
项目:powop    文件:Description.java   
/**
 *
 * @return Return the subjects that this content is about.
 */
@ElementCollection
@Column(name = "type")
@Enumerated(EnumType.STRING)
@Sort(type = SortType.NATURAL)
public SortedSet<DescriptionType> getTypes() {
    return types;
}
项目: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;
   }
项目:greenpepper3    文件:Specification.java   
@ManyToMany( targetEntity= SystemUnderTest.class, cascade={CascadeType.PERSIST, CascadeType.MERGE} )
   @JoinTable( name="SUT_SPECIFICATION", joinColumns={@JoinColumn(name="SPECIFICATION_ID")}, inverseJoinColumns={@JoinColumn(name="SUT_ID")} )
@Sort(type=SortType.COMPARATOR, comparator=SystemUnderTestByNameComparator.class)
   public SortedSet<SystemUnderTest> getTargetedSystemUnderTests()
   {
       return targetedSystemUnderTests;
   }
项目:ZawodyWeb    文件:Submits.java   
/**
     * Get the list of Results
     */
    // resultsPK
    @OneToMany(mappedBy = "submits", cascade = CascadeType.REMOVE)
//    @OrderBy(clause = "id asc")
    @Sort(type = SortType.NATURAL)
    public SortedSet<Results> getResultss() {
        return this.resultss;
    }
项目:ZawodyWeb    文件:Problems.java   
/**
     * Get the list of Submits
     */
    // submitsPK
    @OneToMany(mappedBy = "problems", cascade = CascadeType.REMOVE)
//    @OrderBy(value = "testorder")
    @Sort(type = SortType.NATURAL)
    public SortedSet<Tests> getTestss() {
        return this.testss;
    }
项目:screensaver    文件:Cell.java   
/**
 */
@OneToMany(mappedBy = "cell", cascade = { CascadeType.ALL }, orphanRemoval = true)
@org.hibernate.annotations.Sort(type=org.hibernate.annotations.SortType.NATURAL)
@org.hibernate.annotations.ForeignKey(name = "fk_experimental_cell_information_link_to_cell")
public SortedSet<ExperimentalCellInformation> getExperimentalCellInformationSet()
{
  return experimentalCellInformationSet;
}
项目:screensaver    文件:Library.java   
/**
 * Get the set of wells.
 *
 * @return the wells
 */
@OneToMany(mappedBy = "library", cascade = { CascadeType.ALL })
@Sort(type = SortType.NATURAL)
public SortedSet<Well> getWells()
{
  return _wells;
}
项目:screensaver    文件:Library.java   
/**
 * Get the copies.
 *
 * @return the copies
 */
@OneToMany(mappedBy = "library", cascade = { CascadeType.ALL })
@Sort(type = SortType.NATURAL)
public SortedSet<Copy> getCopies()
{
  return _copies;
}
项目:screensaver    文件:Plate.java   
@ManyToMany(fetch = FetchType.LAZY, cascade = { CascadeType.ALL })
@JoinTable(name = "plateUpdateActivity",
           joinColumns = @JoinColumn(name = "plateId", nullable = false, updatable = false),
           inverseJoinColumns = @JoinColumn(name = "updateActivityId", nullable = false, updatable = false, unique = true))
@org.hibernate.annotations.Cascade(value = { org.hibernate.annotations.CascadeType.SAVE_UPDATE })
@Sort(type = SortType.NATURAL)
// hasNonconventionalMutation: model testing framework doesn't understand this is a containment relationship, and so requires addUpdateActivity() method
@ToMany(singularPropertyName = "updateActivity", hasNonconventionalMutation = true)
@Override
public SortedSet<AdministrativeActivity> getUpdateActivities()
{
  return _updateActivities;
}
项目:screensaver    文件:ScreenResult.java   
/**
 * Get the ordered set of all {@link DataColumn}s for this screen result.
 * @return the ordered set of all {@link DataColumn}s for this screen
 * result.
 */
@OneToMany(mappedBy = "screenResult", cascade = { CascadeType.ALL }, orphanRemoval = true)
@org.hibernate.annotations.Sort(type=org.hibernate.annotations.SortType.NATURAL)
public SortedSet<DataColumn> getDataColumns()
{
  return _dataColumns;
}
项目:screensaver    文件:ScreensaverUser.java   
/**
 * Get the set of activities performed by this user.
 * @return the set of activities performed by this user
 */
@OneToMany(mappedBy = "performedBy")
@edu.harvard.med.screensaver.model.annotations.ToMany(singularPropertyName="activityPerformed")
@edu.harvard.med.screensaver.model.annotations.Column(hasNonconventionalSetterMethod=true)
@Sort(type = SortType.NATURAL)
public SortedSet<Activity> getActivitiesPerformed()
{
  return _activitiesPerformed;
}
项目:screensaver    文件:CherryPickAssayPlate.java   
/**
 * Get the cherry pick screening activity that recorded the screening of this assay plate.
 */
@ManyToMany
@JoinTable(name = "cherryPickAssayPlateScreeningLink",
           joinColumns = @JoinColumn(name = "cherryPickAssayPlateId"),
           inverseJoinColumns = @JoinColumn(name = "cherryPickScreeningId"))
/* has constraint that isPlated() == true */
@edu.harvard.med.screensaver.model.annotations.ToMany(inverseProperty = "screensCollaborated", hasNonconventionalMutation = true)
@Sort(type = SortType.NATURAL)
public SortedSet<CherryPickScreening> getCherryPickScreenings()
{
  return _cherryPickScreenings;
}
项目:screensaver    文件:CherryPickRequest.java   
/**
 * Get the set of cherry pick assay plates.
 * @return the set of cherry pick assay plates
 */
@OneToMany(
  mappedBy="cherryPickRequest",
  cascade = { CascadeType.ALL },
  fetch=FetchType.LAZY
)
@org.hibernate.annotations.Sort(type=org.hibernate.annotations.SortType.NATURAL)
@org.hibernate.annotations.Cascade(value={
  org.hibernate.annotations.CascadeType.SAVE_UPDATE,
  org.hibernate.annotations.CascadeType.DELETE
})
public SortedSet<CherryPickAssayPlate> getCherryPickAssayPlates()
{
  return _cherryPickAssayPlates;
}
项目:screensaver    文件:Screen.java   
/**
 * Get the status items. A Screen may only contain one status with a given
 * {@link ScreenStatus#getRank() rank} value (StatusItems with the same rank are mutually
 * exclusive). Ordering of StatusItems must be equivalent whether by
 * {@link ScreenStatus#getRank() rank} or {@link StatusItem#getStatusDate() date}.
 *
 * @return the status items
 */
@ElementCollection(fetch=FetchType.EAGER)
@JoinTable(name = "screen_status_item",
           joinColumns = @JoinColumn(name = "screen_id"))
@Sort(type=SortType.NATURAL)
public SortedSet<StatusItem> getStatusItems()
{
  return _statusItems;
}
项目:screensaver    文件:Screen.java   
/**
 * Get the lab activities.
 * @return the lab activities
 */
@OneToMany(mappedBy = "screen", cascade = { CascadeType.ALL })
@Sort(type=SortType.NATURAL)
@edu.harvard.med.screensaver.model.annotations.ToMany(singularPropertyName="labActivity", 
                                                      hasNonconventionalMutation=true /* uses createLibraryScreening() and createRNAiCherryPickScreening */)
public SortedSet<LabActivity> getLabActivities()
{
  return _labActivities;
}