package io.github.trevornelson.service;

import com.google.devrel.training.conference.domain.Profile;
import com.googlecode.objectify.Objectify;
import com.googlecode.objectify.ObjectifyFactory;
import com.googlecode.objectify.ObjectifyService;

/**
 * Custom Objectify Service that this application should use.
 */
public class OfyService {
    /**
     * This static block ensure the entity registration.
     */
    static {
        factory().register(Profile.class);
    }

    /**
     * Use this static method for getting the Objectify service object in order to make sure the
     * above static block is executed before using Objectify.
     * @return Objectify service object.
     */
    public static Objectify ofy() {
        return ObjectifyService.ofy();
    }

    /**
     * Use this static method for getting the Objectify service factory.
     * @return ObjectifyFactory.
     */
    public static ObjectifyFactory factory() {
        return ObjectifyService.factory();
    }
}

@@ -38,69 +38,8 @@
 e;%0A%0A
-import com.google.devrel.training.conference.domain.Profile;%0A
 impo
@@ -176,16 +176,55 @@
 Service;
+%0Aimport io.github.trevornelson.Account;
 %0A%0A/**%0A *
@@ -430,15 +430,15 @@
 ter(
-Profile
+Account
 .cla

Create ofy objectify service for persisting entities