1. Why does Hibernate seem to be designed for short lived sessions? stackoverflow.comI know this is a subjective question, but why does Hibernate seem to be designed for short lived sessions? Generally in my apps I create DAOs to abstract my data ... |
2. org.hibernate.Session.clear() considered Harmful? stackoverflow.comThis is a design question, concrete code not submitted to protect my bottom. When working with Hibernate the standard workflow is as follows:
|
3. Is open/close hibernate session in every business logic a good design? coderanch.comWe are building a struts application using Hibernate (so we are relatively newbies to Hibernate). My question is with reference to the Hibernate session. Is it mandatory to close a session every time we open it? I mean, at the end of every action (or business logic to be precise) , should I 'manually close the session (close())? Isn't too 'expensive'? ... |
4. session lost between two thread , bad design? forum.hibernate.orgHi, I try to work on a legacy application and turn it into a hibernate+jpa driven project from a pure jdbc one. But I have some questions right now, i use hibernate.current_session_context_class=thread as session manager but the session goes out between two thread, and I can't not pass bean between then. One solution i can think is that i detach all ... |
5. Design question/Session lifetime forum.hibernate.orgHi, I've got the following situation: - on application startup a list of user objects got fetched from the database - later a meeting object got fetched from the database, containing a list of attending users. These users are other user objects than the ones loaded on startup, because the meeting got loaded in its own session. - now the meeting ... |
6. SessionFactoryImpl - Design Question forum.hibernate.org |
7. why SessionFactory is designed to be immutable? forum.hibernate.org |