18 package org.turro.attach.db;
21 import javax.persistence.EntityManager;
22 import javax.persistence.EntityManagerFactory;
23 import org.turro.attach.entity.Attachment;
24 import org.turro.jpa.Dao;
25 import org.turro.jpa.DaoFactory;
26 import org.turro.version.Module;
27 import org.turro.version.Version;
59 return "/attachment/" + ((
Attachment)
object).getId();
60 }
else if(
object instanceof File) {
61 return "/file/" + ((File)
object).getAbsolutePath();
71 return new Module(
new Version(
"1.5.0"),
"BrightSide Attachment");
EntityManager createEntityManager()
EntityManager createCachedEntityManager()
static String getObjectExtendedPath(Object object)
String getPath(Object object)
static Module getModule()
EntityManagerFactory getFactory()
static String getObjectPath(Object object)
EntityManagerFactory getEmf()
EntityManager createEntityManager(String pu, String conf)
synchronized EntityManager createCachedEntityManager(String pu, String conf)