package de.codecentric.moviedatabase.shop.domain;
import java.math.BigDecimal;
import java.util.UUID;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;
@Entity
public class Movie {
@Id
private UUID id;
private String title;
private String description;
private int quantity;
private BigDecimal price;
@Transient
private transient String movieUrl;
public UUID getId() {
return id;
}
public void setId(UUID id) {
this.id = id;
}
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 int getQuantity() {
return quantity;
}
public void setQuantity(int quantity) {
this.quantity = quantity;
}
public BigDecimal getPrice() {
return price;
}
public void setPrice(BigDecimal price) {
this.price = price;
}
public String getMovieUrl() {
return movieUrl;
}
public void setMovieUrl(String movieUrl) {
this.movieUrl = movieUrl;
}
@Override
public String toString() {
return "Movie [id=" + id + ", title=" + title + ", description="
+ description + ", quantity=" + quantity + ", price=" + price
+ "]";
}
}