[seam-commits] Seam SVN: r10643 - branches/community/Seam_2_1/src/resteasy/org/jboss/seam/resteasy.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Sat Apr 25 15:53:01 EDT 2009
Author: jharting
Date: 2009-04-25 15:53:01 -0400 (Sat, 25 Apr 2009)
New Revision: 10643
Modified:
branches/community/Seam_2_1/src/resteasy/org/jboss/seam/resteasy/ResourceHome.java
Log:
JBSEAM-3987 minor
Modified: branches/community/Seam_2_1/src/resteasy/org/jboss/seam/resteasy/ResourceHome.java
===================================================================
--- branches/community/Seam_2_1/src/resteasy/org/jboss/seam/resteasy/ResourceHome.java 2009-04-25 19:45:30 UTC (rev 10642)
+++ branches/community/Seam_2_1/src/resteasy/org/jboss/seam/resteasy/ResourceHome.java 2009-04-25 19:53:01 UTC (rev 10643)
@@ -207,17 +207,18 @@
return Response.status(BAD_REQUEST).build();
}
- updateEntity(entity);
+ updateEntity(entity, id);
return Response.noContent().build();
}
/**
* Merge the state of the database entity with the entity passed as a
- * parameter.
+ * parameter. Override to customize the update strategy - for instance to
+ * update specific fields only instead of a full merge.
*
* @param entity
*/
- public void updateEntity(T entity)
+ public void updateEntity(T entity, T2 id)
{
entityHome.merge(entity);
}
More information about the seam-commits
mailing list