Java Reference
In-Depth Information
return sections;
public void setSections(List<Section> sections) {
this.sections = sections;
public void addSection(Section section) {
public int getId() {
return id;
public void setId(int id) { = id;
public String getEdition() {
return edition;
public void setEdition(String edition) {
this.edition = edition;
public void removeSection(Section section) {
The Section entity class
The Section entity has properties id and sectionName :
private String id;
private String sectionName;
The Section entity defines NamedQueries findSectionAll , which finds all the
Section entities, and findSectionBySectionName , which finds a Section entity by
section name:
@NamedQuery(name="findSectionAll", query="SELECT s FROM Section s"),
query="SELECT s from Section s WHERE s.sectionName = :section")
Search WWH ::

Custom Search