Subversion Repositories Integrator Subversion

Rev

Rev 259 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 259 Rev 296
Line 17... Line 17...
17
import br.com.ec.core.util.VerificadorUtil;
17
import br.com.ec.core.util.VerificadorUtil;
18
import br.com.ec.domain.shared.ConstantesSEC;
18
import br.com.ec.domain.shared.ConstantesSEC;
19
19
20
@Entity
20
@Entity
21
@Table(name="sec_dre", schema="sc_sec")
21
@Table(name="sec_dre", schema="sc_sec")
22
public class IndicadorDRE implements Serializable, Cloneable {
-
 
-
 
22
public class IndicadorDre implements Serializable, Cloneable {
23
         
23
         
24
        private static final long serialVersionUID = 1L;
24
        private static final long serialVersionUID = 1L;
25
25
26
        private Long codigo;
26
        private Long codigo;
27
        private String descricao;
27
        private String descricao;
Line 106... Line 106...
106
                        return true;
106
                        return true;
107
                if (obj == null)
107
                if (obj == null)
108
                        return false;
108
                        return false;
109
                if (getClass() != obj.getClass())
109
                if (getClass() != obj.getClass())
110
                        return false;
110
                        return false;
111
                IndicadorDRE other = (IndicadorDRE) obj;
-
 
-
 
111
                IndicadorDre other = (IndicadorDre) obj;
112
                if (codigo == null) {
112
                if (codigo == null) {
113
                        if (other.codigo != null)
113
                        if (other.codigo != null)
114
                                return false;
114
                                return false;
115
                } else if (!codigo.equals(other.codigo))
115
                } else if (!codigo.equals(other.codigo))
116
                        return false;
116
                        return false;
117
                return true;
117
                return true;
118
        }
118
        }
119
       
119
       
120
        @Override
120
        @Override
121
        public IndicadorDRE clone() throws CloneNotSupportedException {
-
 
122
                return (IndicadorDRE) super.clone();
-
 
-
 
121
        public IndicadorDre clone() throws CloneNotSupportedException {
-
 
122
                return (IndicadorDre) super.clone();
123
        }
123
        }
124
       
124
       
125
        @Transient
125
        @Transient
126
        public String corIndicador() {
126
        public String corIndicador() {
127
                if (VerificadorUtil.naoEstaNulo(getCodigo())) {
127
                if (VerificadorUtil.naoEstaNulo(getCodigo())) {