Rev 695 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 695 | Rev 736 | ||
|---|---|---|---|
| Line 11... | Line 11... | ||
| 11 | import javax.validation.constraints.Size; |
11 | import javax.validation.constraints.Size; |
| 12 | 12 | ||
| 13 | import br.com.ec.core.util.StringUtil; |
13 | import br.com.ec.core.util.StringUtil; |
| 14 | 14 | ||
| 15 | @Entity |
15 | @Entity |
| 16 | @Table(name="sec_papel", schema="sc_sec") |
- | |
| - | 16 | @Table(name="sec_papel", schema="sc_lse") |
|
| 17 | public class Papel implements Serializable { |
17 | public class Papel implements Serializable { |
| 18 | 18 | ||
| 19 | private static final long serialVersionUID = 1L; |
19 | private static final long serialVersionUID = 1L; |
| 20 | 20 | ||
| 21 | private Integer codigo; |
21 | private Integer codigo; |
| 22 | private String descricao; |
22 | private String descricao; |
| 23 | - | ||
| 24 | public Papel() {} |
- | |
| 25 | - | ||
| 26 | public Papel(Integer codigo) { |
- | |
| 27 | this.codigo = codigo; |
- | |
| 28 | }
|
- | |
| 29 | 23 | ||
| 30 | @Id |
24 | @Id |
| 31 | @GeneratedValue(strategy=GenerationType.IDENTITY) |
25 | @GeneratedValue(strategy=GenerationType.IDENTITY) |
| 32 | @Column(name="cod_papel", nullable=false) |
26 | @Column(name="cod_papel", nullable=false) |
| 33 | public Integer getCodigo() { |
27 | public Integer getCodigo() { |