fixes bug 6971
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@52351 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
695dcfeb3b
commit
3831eabd67
|
@ -22,7 +22,7 @@ import javax.persistence.TemporalType;
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "CASETA_PEAJE_SEQ", sequenceName = "CASETA_PEAJE_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "CASETA_PEAJE_SEQ", sequenceName = "CASETA_PEAJE_SEQ", allocationSize = 1)
|
||||||
@Table(name = "CASETA_PEAJE")
|
@Table(name = "CASETA_PEAJE")
|
||||||
public class CasetaPeaje implements Serializable {
|
public class CasetaPeaje implements Serializable, Comparable<CasetaPeaje> {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@Id
|
@Id
|
||||||
|
@ -116,5 +116,9 @@ public class CasetaPeaje implements Serializable {
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return getCasetaPeajeId() + " - " +getDesccaseta();
|
return getCasetaPeajeId() + " - " +getDesccaseta();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int compareTo(CasetaPeaje caseta) {
|
||||||
|
return this.getDesccaseta().compareTo(caseta.getDesccaseta());
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue