18 package org.turro.financials.db;
20 import javax.persistence.EntityManager;
21 import javax.persistence.EntityManagerFactory;
22 import org.turro.financials.entity.*;
23 import org.turro.jpa.Dao;
24 import org.turro.jpa.DaoFactory;
25 import org.turro.version.Module;
26 import org.turro.version.Version;
58 return "/contract/" + ((
Contract)
object).getId();
59 }
else if(
object instanceof
Document) {
60 return "/document/" + ((
Document)
object).getId();
61 }
else if(
object instanceof
BatchOf) {
62 return "/batchof/" + ((
BatchOf)
object).getId();
65 }
else if(
object instanceof
Product) {
66 return "/product/" + ((
Product)
object).getId();
68 return "/fixed-asset/" + ((
FixedAsset)
object).getId();
69 }
else if(
object instanceof
Register) {
70 return "/register/" + ((
Register)
object).getId();
71 }
else if(
object instanceof
Company) {
72 return "/company/" + ((
Company)
object).getId();
74 return "/department/" + ((
Department)
object).getId();
75 }
else if(
object instanceof
Service) {
76 return "/service/" + ((
Service)
object).getId();
77 }
else if(
object instanceof
Account) {
78 return "/account/" + ((
Account)
object).getId();
80 return "/major-account/" + ((
MajorAccount)
object).getId();
90 return new Module(
new Version(
"1.3.9"),
"BrightSide Financials");
EntityManager createCachedEntityManager()
static Module getModule()
EntityManager createEntityManager()
static String getObjectPath(Object object)
static String getObjectExtendedPath(Object object)
String getPath(Object object)
EntityManagerFactory getFactory()
EntityManagerFactory getEmf()
EntityManager createEntityManager(String pu, String conf)
synchronized EntityManager createCachedEntityManager(String pu, String conf)