Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Id
- @GeneratedValue(strategy = GenerationType.IDENTITY)
- private Long id;
- @NotNull
- @Column(name = "nombre_producto", nullable = false)
- private String nombreProducto;
- @Enumerated(EnumType.STRING)
- @Column(name = "estilo")
- private EstiloCerveza estilo;
- @Column(name = "nombre_comercial")
- private String nombreComercial;
- @NotNull
- @Column(name = "precio_litro", precision = 10, scale = 2, nullable = false)
- private BigDecimal precioLitro;
- @Enumerated(EnumType.STRING)
- @Column(name = "tipo_producto")
- private TipoProducto tipoProducto;
- @Lob
- @Column(name = "imagen")
- private byte[] imagen;
- @Column(name = "imagen_content_type")
- private String imagenContentType;
- @ManyToOne
- @JsonIgnoreProperties("productos")
- private Empresa empresa;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement