Error trying to validate @CPF and @CNPJ with Hibernate jSf2

0

Good evening I have a project of a system in JavaEE with JSF2 Primefaces. I am using the @CPF and @CNPJ mappings of hibernate, in the same attribute. But it is giving error "WARN: HV000129: EL expression '$ {value}' references an unknown property" This is part of the model code @CNPJ(groups =JuridicaGroup.class) @CPF(groups = FisicaGroup.class) @Size(max = 20) @Column(name = "doc_receita_federal", nullable = false, length = 20) public String getDocumentoReceitaFederal() { return documentoReceitaFederal; }  I would like to receive the help, I researched the internet but nothing, only vague answers.

    
asked by anonymous 21.09.2017 / 02:53

1 answer

0

Good folks about the above error is resolved, I upgraded to hibernate 5.2.4 and changed the beans.xml code <interceptors> <class>com.soulsoftware.sisgep.util.jpa.TransactionInterceptor</class> </interceptors>

    
24.09.2017 / 03:34