Google Application Engine Google App Engine GAE

Compatible Spring EntityManager Injector#

Google Application Engine/PersistenceAnnotationBeanPostProcessor.java(info)
	<bean class="com.intersult.jsf2.PersistenceAnnotationBeanPostProcessor"/>

Test für lokalen Datastore#

public class ObjectifyTest {
    private static LocalServiceTestHelper helper;

    @BeforeClass
    public static void setupClass() {
    	LocalDatastoreServiceTestConfig config = new LocalDatastoreServiceTestConfig();
		helper = new LocalServiceTestHelper(config);
		ObjectifyService.register(User.class);
	}
    
    @Before
    public void setUp() {
        helper.setUp();
    }

    @After
    public void tearDown() {
        helper.tearDown();
    }

    @Test
    public void test() {
        Objectify objectify = ObjectifyService.begin();
        User user = objectify.find(User.class, 1);
    }