18 package org.turro.erp.entity;
20 import java.util.HashSet;
22 import javax.persistence.CascadeType;
23 import javax.persistence.Column;
24 import javax.persistence.Entity;
25 import javax.persistence.FetchType;
26 import javax.persistence.GeneratedValue;
27 import javax.persistence.GenerationType;
28 import javax.persistence.Id;
29 import javax.persistence.OneToMany;
39 @GeneratedValue(strategy=GenerationType.IDENTITY)
40 @Column(name=
"IDENTIFIER")
43 @Column(name=
"CATEGORIZEDTASK_NAME", unique =
true, nullable =
false)
46 @OneToMany(mappedBy =
"categorizedTask", fetch = FetchType.LAZY, cascade = CascadeType.REMOVE, orphanRemoval=
true)
47 private Set<CategorizedUsage> categorizedUsage =
new HashSet<CategorizedUsage>();
50 return categorizedUsage;
54 this.categorizedUsage = categorizedUsage;
Set< CategorizedUsage > getCategorizedUsage()
void setCategorizedUsage(Set< CategorizedUsage > categorizedUsage)
void setName(String name)