Created
January 25, 2009 18:45
-
-
Save 3gcodes/52493 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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