1. JUnit Exception Catching stackoverflow.com
I am writing a few test cases that depend on the database being available, so on the @Before and @After I open and close the session (Hibernate), as well as start ...
2. How to break a Hibernate session? stackoverflow.com
In the Hibernate reference, it is stated several times that
All exceptions thrown by Hibernate are fatal. This means you have to roll back the database transaction and close ...
3. Testing Hibernate with JUnit: "session is closed" exception stackoverflow.com
sometimes when testing some CRUD operations in my DAO classes using JUnit 4.5, Hibernate throws an exception: org.hibernate.SessionException: Session is closed! The session is not closed explicitly, so what happens? Thanks
4. could not deserialize exception (simple test case provided) forum.hibernate.org
drop table employee; create table employee ( name varchar(30), street varchar(30), primary key (name) ) engine=innodb ; drop table address; create table address ( street varchar(30), city varchar(10), primary key (street) ) engine=innodb ; insert into employee(name, street) values ('emp1', 'street1'); insert into employee(name, street) values ('emp2', 'street1'); insert ...
5. Exception in running hibernate tests / urgent forum.hibernate.org
hi all, i have been running hibernate successfully for over 3 months and since yesterday i am receiving following error net.sf.hibernate.MappingException: Error reading resource: com/myapp/hibernate/H ibernateExpenseType.hbm.xml at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:294 ) at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:944 ) at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:896 ) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:847) at com.myapp.hibernate.HibernatePersistenceManager.initHibernate(Hiberna tePersistenceManager.java:83) at com.myapp.hibernate.HibernatePersistenceManager.