Page 1 of 1

Can't get new attibute after extending CustomerAttributeImpl

Posted: Wed Oct 28, 2015 10:14 am
by RafaelPLaza
Hi Team!

I extendend CustomerAttributeImpl as it is bellow

Code: Select all

@Entity
@Table(name = "BLC_UNIFORMES_CUST_ATTRIBUTE")
public class UniformesCustomerAttributeImpl extends CustomerAttributeImpl implements UniformesCustomerAttribute {

   private static final long serialVersionUID = -5315756711798231403L;

   @Column(name = "ATIVO_TATUAGEM")
   protected boolean ativoTatuagem;
   
   @Column(name = "ATIVO")
   protected boolean ativo;
   
   @Column(name = "DATA_VENCIMENTO")
   protected Date dataVencimento;

   @Override
   public boolean getAtivoTatuagem() {
      return ativoTatuagem;
   }

   @Override
   public void setAtivoTatuagem(boolean ativoTatuagem) {
      this.ativoTatuagem = ativoTatuagem;
   }

   @Override
   public Date getDataVencimento() {
      return dataVencimento;
   }

   @Override
   public void setDataVencimento(Date dataVencimento) {
      this.dataVencimento = dataVencimento;
   }

   public boolean setAtivo() {
      return ativo;
   }

   public void setAtivo(boolean ativo) {
      this.ativo = ativo;
   }
}


I extended CustomerAttributeImpl as it is below. But I cannot retrieve the information of the extended class. I can just retrive the field value of the CustomerAttributeImpl. I noticed that on the entity , there's some anotations that made just some attibutes visible. I need to override this to acceses the information of my extended class. I don't want to change CustomerAttributeImpl.

Is the any way to do this?

thanks in advance