Skip to content

Instantly share code, notes, and snippets.

@3gcodes
Created January 25, 2009 18:45
Show Gist options
  • Save 3gcodes/52493 to your computer and use it in GitHub Desktop.
Save 3gcodes/52493 to your computer and use it in GitHub Desktop.
@Entity
@Table(name = "movies")
public class Movie extends BaseModel {
@Column(nullable = false)
private String title;
private String description;
@Enumerated(value = EnumType.STRING)
@Column(nullable = false)
private Format format = Format.DVD;
@Enumerated(value = EnumType.STRING)
@Column(nullable = false)
private Rating rating = Rating.PG13;
private Integer slot;
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Format getFormat() {
return format;
}
public void setFormat(Format format) {
this.format = format;
}
public Rating getRating() {
return rating;
}
public void setRating(Rating rating) {
this.rating = rating;
}
public Integer getSlot() {
return slot;
}
public void setSlot(Integer slot) {
this.slot = slot;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment