Hi, I am trying to load some info from the database asynchronously.
I have a class A that has a relation One to One with ClassB.
What I do, is getting count of class A in the database then load limited number of class A
So Hibernate runs 3 queries: first to get count, second to get class A, third to load class B, mapped in class A.
I am running it asynch using a Timer like this:
Timer timer = new Timer(true);
// add the task to the timer
timer.schedule(task, 1);
the task.run calls the loading method
If I am not using the timer, test works ok. If I am using it, Hibernate throws a TableNotFound Exception for the third query
any idea, what's the problem?