Grails gerando exception: identifier of an instance of DOMAIN was altered from X to Y;
19/08/2014 12:42
BigDecimal valor
StatusPagamento statusPagamento
String chave //Uma descrição do status do pagamento.
@Validateable
class PagamentoCommand {
List pagamento = [].withLazyDefault {
new Pagamento()
}
}
<g:each in="${pagamentos}" var="pagamento" status="i">
<g:select name="pagamento[${i}].statusPagamento.id" from="${StatusPagamento.list()}" optionKey="id" optionValue="descricao" value="${pagamento.statusPagamento.id}" />
</g:each>
Para se registrar, clique aqui.