Hello everybody!
I need help.
I use cactus test for server-side testing (ejb).
I use hibernate and ejb beans, mysql db in my project.
When I am testing ejb local interface on server I need to remove objects created during tests from database. Remove method in local interface is deprecated and is absent (for projects requirements).
I run Hibernate Session (on server in testMethod in Test class extends ServletTestCase) and want use method session.delete(Object).
I can find entities used session.get(class,id) but I don't use delete method.
Why?
Method don't throw exceptions and don't removed record form database.
|