Erro no plugin Searchable
22/06/2010 00:00
static searchable = truena minha classe de domínio.
Grails Runtime Exception
Error Details
Error 500: Executing action [save] of controller [despesaviagem.DespesaController] caused exception: a different object with the same identifier value was already associated with the session: [despesaviagem.Despesa#2]; nested exception is org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [despesaviagem.Despesa#2]
Servlet: grails
URI: /DespesaViagem/grails/despesa/save.dispatch
Exception Message: a different object with the same identifier value was already associated with the session: [despesaviagem.Despesa#2]
Caused by: a different object with the same identifier value was already associated with the session: [despesaviagem.Despesa#2]
Class: DespesaController
At Line: [24]
Code Snippet:
Stack Trace
org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [despesaviagem.Despesa#2]
at $Proxy12.saveOrUpdate(Unknown Source)
at despesaviagem.DespesaController$_closure4.doCall(DespesaController.groovy:24)
at despesaviagem.DespesaController$_closure4.doCall(DespesaController.groovy)
at java.lang.Thread.run(Thread.java:619)
despesa.merge()
despesa.save()
Para se registrar, clique aqui.