22,8 → 22,6 |
import javax.persistence.Temporal; |
import javax.persistence.TemporalType; |
|
import org.hibernate.annotations.OrderBy; |
|
/** |
* ObjectEntity generated by hbm2java |
*/ |
45,7 → 43,7 |
private Date modified; |
private Boolean deleted; |
private Term term; |
private Set<History> history = new HashSet<History>(0); |
private Set<History> histories = new HashSet<History>(0); |
private Relationship relationship; |
|
/** |
76,7 → 74,7 |
* @param modified |
* @param deleted |
* @param term |
* @param history |
* @param histories |
* @param relationship |
*/ |
public ObjectEntity(User userByEditorId, ObjectType objectType, |
90,7 → 88,7 |
this.modified = modified; |
this.deleted = deleted; |
this.term = term; |
this.history = histories; |
this.histories = histories; |
this.relationship = relationship; |
} |
|
241,18 → 239,17 |
* @return |
*/ |
@OneToMany(fetch = FetchType.LAZY, mappedBy = "object") |
@OrderBy(clause = "date DESC") |
public Set<History> getHistory() |
public Set<History> getHistories() |
{ |
return this.history; |
return this.histories; |
} |
|
/** |
* @param history |
* @param histories |
*/ |
public void setHistory(Set<History> history) |
public void setHistories(Set<History> histories) |
{ |
this.history = history; |
this.histories = histories; |
} |
|
/** |