Jpa generic dao for google app engine
Here the codes to create Jpa Generic Dao for Google App engine.
Create EMF(Entity Manager factory) class
package com.beda.pushurl.server;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
public final class EMF {
private static final EntityManagerFactory emfInstance =
Persistence.createEntityManagerFactory(“transactions-optional”);
private EMF() {}
public static EntityManagerFactory get() {
[...]






