Hello folks, i am trying to do a findByPk with a pk that have one of his attributes an enum, so when hibernate do the load he throws a exception, because the field in the database is an Integer an the enum is sending a String
org.hibernate.exception.SQLGrammarException: could not load an entity: [com.waybrasil.model.persistence.servicocontratado.ServicoContratado#component[codigoReceita,codigoGrupoServico,ponto,codigoServico,cidade,contrato]{contrato=367971, codigoGrupoServico=291, [size=18][b]codigoReceita=Internet[/b][/size], codigoServico=238, cidade=50, ponto=1}]
see codigoReceita= Internet should be 8
tanx
LucasFMR
|