On Fri, 24 Jun 2011 12:35:51 -0300, George Christman
<gchrist...@cardaddy.com> wrote:
void onPrepareFromPR() {
List<Funding> _fundings =
session.createCriteria(Funding.class).add(Restrictions.eq("purchaseRequest.id",
purchaseRequest.getId())).list();
funding = new Funding();
funding.setName(NEW_FUNDING_NAME);
funding.setId(OTHER_ID);
_fundings.add(funding);
fundingModel = selectModelFactory.create(_fundings, "label");
}
Here's the problem: you should use OTHER instead of instantiating Funding,
as the encoder is doing a == check.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org