import org.codehaus.xfire.aegis.type.java5.XmlElement;
import org.codehaus.xfire.aegis.type.java5.XmlType;
import org.hibernate.annotations.Cache ;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Type;
@Table(name = "ISSUES")
@XmlType(namespace = "com.mycomp.corpsys.casemgmt")
@org.hibernate.annotations.Entity(mutable = true)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE )
public class Issue extends DomainPersistent
{
@OneToMany(fetch = FetchType.LAZY, cascade = {CascadeType.ALL})
@JoinColumn(name = "issue")
@IgnoreProperty
public Set<IssueDocument> getAttachedDocuments()
{
return m_attachedDocuments;
}
public void setAttachedDocuments(Set<IssueDocument> p_attachedDocuments)
{
m_attachedDocuments = p_attachedDocuments;
}
@OneToMany(fetch = FetchType.LAZY, cascade = {CascadeType.ALL})
@JoinColumn(name = "issue")
public Set<IssueComment> getComments()
{
return m_comments;
}
public void setComments(Set<IssueComment> p_comments)
{
m_comments = p_comments;
}
@XmlElement(nillable = true)
public Calendar getCompletionDate()
{
return m_completionDate;
}
