Rev 259 | Rev 303 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 259 | Rev 297 | ||
|---|---|---|---|
| Line 19... | Line 19... | ||
| 19 | import org.hibernate.annotations.ForeignKey; |
19 | import org.hibernate.annotations.ForeignKey; |
| 20 | 20 | ||
| 21 | import br.com.ec.core.interfaces.Alterar; |
21 | import br.com.ec.core.interfaces.Alterar; |
| 22 | import br.com.ec.core.interfaces.Cadastrar; |
22 | import br.com.ec.core.interfaces.Cadastrar; |
| 23 | import br.com.ec.core.util.VerificadorUtil; |
23 | import br.com.ec.core.util.VerificadorUtil; |
| - | 24 | import br.com.ec.domain.dto.FuncionarioDTO; |
|
| 24 | import br.com.ec.domain.model.tipos.TipoComissionamento; |
25 | import br.com.ec.domain.model.tipos.TipoComissionamento; |
| 25 | 26 | ||
| 26 | @Entity |
27 | @Entity |
| 27 | @Table(name="sec_funcionario", schema="sc_sec") |
28 | @Table(name="sec_funcionario", schema="sc_sec") |
| 28 | public class Funcionario implements Serializable { |
29 | public class Funcionario implements Serializable { |
| Line 47... | Line 48... | ||
| 47 | 48 | ||
| 48 | public Funcionario() {} |
49 | public Funcionario() {} |
| 49 | 50 | ||
| 50 | public Funcionario(Boolean ativo) { |
51 | public Funcionario(Boolean ativo) { |
| 51 | this.ativo = ativo; |
52 | this.ativo = ativo; |
| - | 53 | }
|
|
| - | 54 | ||
| - | 55 | public Funcionario(FuncionarioDTO funcionarioDTO) { |
|
| - | 56 | this.sequencial = funcionarioDTO.getSequencialFuncionario(); |
|
| 52 | }
|
57 | }
|
| 53 | 58 | ||
| 54 | @Id |
59 | @Id |
| 55 | @SequenceGenerator(name = "sq_funcionario") |
60 | @SequenceGenerator(name = "sq_funcionario") |
| 56 | @GeneratedValue(strategy=GenerationType.IDENTITY) |
61 | @GeneratedValue(strategy=GenerationType.IDENTITY) |