18 package org.turro.alliance.db;
20 import javax.persistence.EntityManager;
21 import javax.persistence.EntityManagerFactory;
22 import org.turro.alliance.db.entities.AxCenter;
23 import org.turro.alliance.db.entities.AxContact;
24 import org.turro.alliance.db.entities.AxProject;
25 import org.turro.alliance.db.entities.AxProjectGrant;
26 import org.turro.alliance.db.entities.AxStudent;
27 import org.turro.jpa.Dao;
28 import org.turro.jpa.DaoFactory;
29 import org.turro.version.Module;
30 import org.turro.version.Version;
62 return "/axcontact/" + ((
AxContact)
object).getContactId().stringify();
64 return "/axproject/" + ((
AxProject)
object).getProjectId().stringify();
66 return "/axproject-grant/" + ((
AxProjectGrant)
object).getProjectGrantId().stringify();
68 return "/axstudent/" + ((
AxStudent)
object).getStudentId().stringify();
69 }
else if(
object instanceof
AxCenter) {
70 return "/axcenter/" + ((
AxCenter)
object).getCenterId().stringify();
80 return new Module(
new Version(
"1.0"),
"Elephant Alliance");
static Module getModule()
EntityManager createEntityManager()
static String getObjectPath(Object object)
static String getObjectExtendedPath(Object object)
EntityManager createCachedEntityManager()
EntityManagerFactory getFactory()
String getPath(Object object)
EntityManagerFactory getEmf()
EntityManager createEntityManager(String pu, String conf)
synchronized EntityManager createCachedEntityManager(String pu, String conf)