You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Dmitriy Vsekhvalnov <dv...@gmail.com> on 2011/10/24 10:21:52 UTC

T5: @MergeBefore?

Hi everyone,

   after 200 times writing something like:

@CommitAfter
public Object onAction()
{
   report=(Report)session.merge(report);

   //do update report stuff here

}

i'm curious if there are anything ready to automate this?  May be per-field
annotation to auto-merge hibernate entities on XHR requests?

Like that:

@Property
@Persist
@MergeBefore  //just to indicate entity should be re-attached to session on
XHR
private Report report;


Thanks.