@@ -0,0 +1,610 @@
+package com.voodoodyne.gstrap.objectify;%0A%0Aimport java.util.Objects;%0A%0Aimport static com.googlecode.objectify.ObjectifyService.ofy;%0A%0A/**%0A * Utility functions for dealing with Objectify Entities%0A */%0Apublic class Entities %7B%0A%09%0A%09/**%0A%09 * If the two values are not equal, defer a save on the entity. Null-safe.%0A%09 * @return true if the two values differ%0A%09 */%0A%09public static %3CT%3E boolean saveIfDifferent(final Object entity, final T firstValue, final T secondValue) %7B%0A%09%09final boolean different = !Objects.equals(firstValue, secondValue);%0A%09%09if (different)%0A%09%09%09ofy().defer().save().entity(entity);%0A%0A%09%09return different;%0A%09%7D%0A%7D%0A

Add Entities utility class