Got test case from Claudio:
Hi Rob, I found the problem shows only when I useEbean.refresh(bean).In my code I refreshed the bean, then applied the changes from theuser interface and eventually saved the bean.If I take out the refresh I have no errors (the refresh was misplaced,I needed refreshMany).
I'm uploading a simple test case that shows the error, but here is thecode that fails:
Outer loaded = Ebean.find(Outer.class).findUnique();
// if commented Ebean saves correctlyEbean.refresh(loaded);
loaded.getEmbeddedBean().setDate2(new Date());
// failsEbean.save(loaded);
Fixed in HEAD.