Created
October 12, 2012 23:48
-
-
Save picodotdev/3882345 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
package es.com.blogspot.elblogdepicodev.activiti.misc; | |
import java.io.Serializable; | |
public class Producto implements Serializable { | |
private static final long serialVersionUID = -2340188855153751355L; | |
private String nombre; | |
private Long existencias; | |
public Producto() { | |
} | |
public Producto(String nombre, Long existencias) { | |
this.nombre = nombre; | |
this.existencias = existencias; | |
} | |
public String getNombre() { | |
return nombre; | |
} | |
public void setNombre(String nombre) { | |
this.nombre = nombre; | |
} | |
public Long getExistencias() { | |
return existencias; | |
} | |
public void setExistencias(Long existencias) { | |
this.existencias = existencias; | |
} | |
public boolean hayExistencias() { | |
return existencias > 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment