Rev 302 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 302 | Rev 325 | ||
|---|---|---|---|
| Line 42... | Line 42... | ||
| 42 | 42 | ||
| 43 | public Endereco(Boolean ativo) { |
43 | public Endereco(Boolean ativo) { |
| 44 | this.ativo = ativo; |
44 | this.ativo = ativo; |
| 45 | }
|
45 | }
|
| 46 | 46 | ||
| - | 47 | public Endereco(Integer sequencial) { |
|
| - | 48 | this.sequencial = sequencial; |
|
| - | 49 | }
|
|
| - | 50 | ||
| 47 | @Id |
51 | @Id |
| 48 | @SequenceGenerator(name = "sq_endereco") |
52 | @SequenceGenerator(name = "sq_endereco") |
| 49 | @GeneratedValue(strategy=GenerationType.IDENTITY) |
53 | @GeneratedValue(strategy=GenerationType.IDENTITY) |
| 50 | @Column(name="seq_endereco", nullable=false) |
54 | @Column(name="seq_endereco", nullable=false) |
| 51 | public Integer getSequencial() { |
55 | public Integer getSequencial() { |