[svn r246] added annotatioins and made some actions
This commit is contained in:
parent
54ca574e58
commit
a4d1ff1c57
15 changed files with 679 additions and 25 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue