18 package org.turro.erp.entity;
20 import java.util.ArrayList;
21 import java.util.Iterator;
22 import java.util.List;
23 import javax.persistence.*;
24 import org.turro.string.Strings;
31 public class Aptitude implements java.io.Serializable {
34 @GeneratedValue(strategy=GenerationType.IDENTITY)
35 @Column(name=
"IDENTIFIER")
40 @OneToMany(mappedBy=
"aptitude", fetch = FetchType.EAGER, cascade = CascadeType.ALL, orphanRemoval=
true)
41 @OrderBy(value=
"ordering")
42 private List<AptitudeDegree> aptitudeDegrees =
new ArrayList<AptitudeDegree>();
61 return aptitudeDegrees;
65 this.aptitudeDegrees = aptitudeDegrees;
72 return Strings.isBlank(name);
76 Iterator<AptitudeDegree> itp = aptitudeDegrees.iterator();
77 while(itp.hasNext()) {
void setAptitude(Aptitude aptitude)
void setName(String name)
List< AptitudeDegree > getAptitudeDegrees()
void setAptitudeDegrees(List< AptitudeDegree > aptitudeDegrees)