Rev 325 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 325 | Rev 409 | ||
|---|---|---|---|
| Line 27... | Line 27... | ||
| 27 | 27 | ||
| 28 | import br.com.ec.core.interfaces.Alterar; |
28 | import br.com.ec.core.interfaces.Alterar; |
| 29 | import br.com.ec.core.interfaces.Cadastrar; |
29 | import br.com.ec.core.interfaces.Cadastrar; |
| 30 | import br.com.ec.core.util.StringUtil; |
30 | import br.com.ec.core.util.StringUtil; |
| 31 | import br.com.ec.core.util.VerificadorUtil; |
31 | import br.com.ec.core.util.VerificadorUtil; |
| - | 32 | import br.com.ec.domain.dto.FuncionarioDTO; |
|
| 32 | import br.com.ec.domain.dto.UsuarioDTO; |
33 | import br.com.ec.domain.dto.UsuarioDTO; |
| 33 | 34 | ||
| 34 | @Entity |
35 | @Entity |
| 35 | @Table(name="sec_usuario", schema="sc_sec") |
36 | @Table(name="sec_usuario", schema="sc_sec") |
| 36 | public class Usuario implements Serializable { |
37 | public class Usuario implements Serializable { |
| Line 52... | Line 53... | ||
| 52 | 53 | ||
| 53 | public Usuario() {} |
54 | public Usuario() {} |
| 54 | 55 | ||
| 55 | public Usuario(Long sequencial) { |
56 | public Usuario(Long sequencial) { |
| 56 | this.sequencial = sequencial; |
57 | this.sequencial = sequencial; |
| - | 58 | }
|
|
| - | 59 | ||
| - | 60 | public Usuario(UsuarioDTO usuarioDTO) { |
|
| - | 61 | this.sequencial = usuarioDTO.getSequencial(); |
|
| 57 | }
|
62 | }
|
| 58 | 63 | ||
| 59 | @Id |
64 | @Id |
| 60 | @SequenceGenerator(name = "sq_usuario") |
65 | @SequenceGenerator(name = "sq_usuario") |
| 61 | @GeneratedValue(strategy = GenerationType.IDENTITY) |
66 | @GeneratedValue(strategy = GenerationType.IDENTITY) |