thread « Entity « JPA Q&A





1. Entity updated in a controlled not updated in a Job    stackoverflow.com

Hi I'm having a problem with my project. I have a background job running which updates one entity. The problem is that if I update another entity from a controller the first one ...

2. Entities + Threads    forum.hibernate.org

Hi, I could need a little clarification on the area of entities and threads. I'm experimenting with a desktop application, which purpose is to manage my personal DVD collection. I'm keeping things simple, and i do not use any fancy transfer objects or the like. Now, i've got a DvdServices class which returns a collection of Dvd instances - each representing ...

3. spool and .data threads created for each entity    forum.hibernate.org

Hi, I have a spring integrated web application using JPA/hibernate 3. We have been having some memory performance issues and so connected JConsole to out test machine. Looking at the threads I noticed that we have a couple of threads per JPA entity, e.g.: my.domain.EntityOne.data my.domain.EntityOne Spool Thread my.domain.EntityTwo.data my.domain.EntityTwo Spool Thread Does anyone know why on earth there are two ...

4. Sharing hibernate entities between threads    forum.hibernate.org

Hello, I have the following problem. I have a service which at a point determines if a query must be run background or not. If it determines that it must be done in background it runs a thread.Executes the query and returns the result. The problem rises when I try to access objects through lzy fetch. The session its open at ...