18 package org.turro.erp.db;
20 import javax.persistence.EntityManager;
21 import org.turro.erp.entity.*;
22 import org.turro.jpa.Dao;
23 import org.turro.jpa.DaoFactory;
24 import org.turro.version.Module;
25 import org.turro.version.Version;
53 }
else if(
object instanceof
Aptitude) {
54 return "/aptitude/" + ((
Aptitude)
object).getId();
55 }
else if(
object instanceof
Resource) {
56 return "/resource/" + ((
Resource)
object).getId();
60 return "/workorder/" + ((
WorkOrder)
object).getId();
65 }
else if(
object instanceof
Task) {
66 return "/task/" + ((
Task)
object).getId();
78 return new Module(
new Version(
"0.3.1"),
"BrightSide Enterprise Resource Planning");
EntityManager createEntityManager()
String getPath(Object object)
static Module getModule()
static String getObjectExtendedPath(Object object)
EntityManager createCachedEntityManager()
static String getObjectPath(Object object)
EntityManager createEntityManager(String pu, String conf)
synchronized EntityManager createCachedEntityManager(String pu, String conf)