Rev 487 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 487 | Rev 492 | ||
|---|---|---|---|
| Line 9... | Line 9... | ||
| 9 | import javax.persistence.Id; |
9 | import javax.persistence.Id; |
| 10 | import javax.persistence.JoinColumn; |
10 | import javax.persistence.JoinColumn; |
| 11 | import javax.persistence.ManyToOne; |
11 | import javax.persistence.ManyToOne; |
| 12 | import javax.persistence.SequenceGenerator; |
12 | import javax.persistence.SequenceGenerator; |
| 13 | import javax.persistence.Table; |
13 | import javax.persistence.Table; |
| 14 | import javax.persistence.Transient; |
- | |
| 15 | import javax.validation.constraints.NotNull; |
14 | import javax.validation.constraints.NotNull; |
| 16 | 15 | ||
| 17 | import org.hibernate.annotations.ForeignKey; |
16 | import org.hibernate.annotations.ForeignKey; |
| 18 | 17 | ||
| 19 | import br.com.ec.core.interfaces.Alterar; |
18 | import br.com.ec.core.interfaces.Alterar; |
| 20 | import br.com.ec.core.interfaces.Cadastrar; |
19 | import br.com.ec.core.interfaces.Cadastrar; |
| 21 | import br.com.ec.core.util.VerificadorUtil; |
- | |
| - | 20 | import br.com.ec.core.util.StringUtil; |
|
| 22 | 21 | ||
| 23 | @Entity |
22 | @Entity |
| 24 | @Table(name="sec_transporte", schema="sc_sec") |
23 | @Table(name="sec_transporte", schema="sc_sec") |
| 25 | public class Transporte implements Serializable { |
24 | public class Transporte implements Serializable { |
| 26 | 25 | ||
| Line 79... | Line 78... | ||
| 79 | @Column(name="dsc_volume") |
78 | @Column(name="dsc_volume") |
| 80 | public String getVolumeEspecie() { |
79 | public String getVolumeEspecie() { |
| 81 | return volumeEspecie; |
80 | return volumeEspecie; |
| 82 | }
|
81 | }
|
| 83 | public void setVolumeEspecie(String volumeEspecie) { |
82 | public void setVolumeEspecie(String volumeEspecie) { |
| 84 | this.volumeEspecie = volumeEspecie; |
- | |
| - | 83 | this.volumeEspecie = StringUtil.setarUpperCaseComTrim(volumeEspecie); |
|
| 85 | }
|
84 | }
|
| 86 | 85 | ||
| 87 | @Column(name="val_peso_bruto") |
86 | @Column(name="val_peso_bruto") |
| 88 | public Double getPesoBruto() { |
87 | public Double getPesoBruto() { |
| 89 | return pesoBruto; |
88 | return pesoBruto; |