2
Fork 0

[svn r246] added annotatioins and made some actions

This commit is contained in:
willemc 2007-04-28 01:13:29 +02:00
parent 54ca574e58
commit a4d1ff1c57
15 changed files with 679 additions and 25 deletions

View file

@ -77,6 +77,24 @@ public class Serv5HibernateVascDataSource implements VascDataSource {
Hibernate3Factory.getSession(getSession()).close();
}
}
public Object merge(Object object) throws Exception {
try {
return Hibernate3Factory.getSession(getSession()).merge(object);
} finally {
Hibernate3Factory.getSession(getSession()).close();
}
}
public void delete(Object object) throws Exception {
try {
Object newObject = Hibernate3Factory.getSession(getSession()).merge(object);
Hibernate3Factory.getSession(getSession()).delete(newObject);
} finally {
Hibernate3Factory.getSession(getSession()).close();
}
}
/**
* @return the session
*/