Dave Tolls wrote:What does your Productos class look like?
What data is there in it in the request?
Does it have an instance of Fabricante in it, or does it have an id for it?
package Modelo;
/**
*
* @author aula3
*/
public class Productos {
private int id;
private
String nombre,precio,fecha_vencimiento;
public Productos (){
}
public Productos(String nombre, String precio, String fecha_vencimiento) {
this.nombre = nombre;
this.precio = precio;
this.fecha_vencimiento = fecha_vencimiento;
}
public Productos(int id, String nombre, String precio, String fecha_vencimiento) {
this.id = id;
this.nombre = nombre;
this.precio = precio;
this.fecha_vencimiento = fecha_vencimiento;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public String getPrecio() {
return precio;
}
public void setPrecio(String precio) {
this.precio = precio;
}
public String getFecha_vencimiento() {
return fecha_vencimiento;
}
public void setFecha_vencimiento(String fecha_vencimiento) {
this.fecha_vencimiento = fecha_vencimiento;
}
}