boa tarde
object references an unsaved transient instance - save the transient instance before flushing
estou tentando alterar um registro onde um dos campos é nulo e faz referencia com uma tabela pai.
o que pode ser?
obrigado
segue log do erro
14:08:58,199 INFO [stdout] (http--127.0.0.1-8080-1) ------------------------ VOEXCEPTION ------------------------
14:08:58,200 INFO [stdout] (http--127.0.0.1-8080-1) org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: br.com.vo.entity.VoClassificacaoCombustivel.voMaterialAditivo -> br.com.vo.sup.mt.entity.VoMaterial
14:08:58,200 INFO [stdout] (http--127.0.0.1-8080-1) /aut/ma/voClassificacaoCombustivel.jsf
14:08:58,200 INFO [stdout] (http--127.0.0.1-8080-1) -------------------------------------------------------------
14:08:58,202 ERROR [stderr] (http--127.0.0.1-8080-1) br.com.vo.exception.VoException: org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: br.com.vo.entity.VoClassificacaoCombustivel.voMaterialAditivo -> br.com.vo.sup.mt.entity.VoMaterial
14:08:58,202 ERROR [stderr] (http--127.0.0.1-8080-1) at br.com.vo.db.VoEJB.alterar(VoEJB.java:107)