Java Reference
In-Depth Information
public String getFilename() {
return this.filename;
}
public void setCaption(String title) {
this.caption = title;
}
public void setFilename(String filename) {
this.filename = filename;
}
private String caption;
private String filename;
}
Listing 7-5. The Class Representing the Advert
package com.hibernatebook.xmlmapping;
public class Advert {
public Advert(String title, String content, Picture picture) {
this.title = title;
this.content = content;
this.picture = picture;
}
Advert() {
}
public int getId() {
return id;
}
public String getTitle() {
return this.title;
}
public String getContent() {
return this.content;
}
public Picture getPicture() {
return this.picture;
}
Search WWH ::




Custom Search