1. hibernate DAO design stackoverflow.comdo i have to open and close session and transcation in each function (make object ,delete object ,findbyID) can u give me a DAO implenetation for findall (lazy initialization ). |
2. Hibernate multi level of transaction stackoverflow.comI have some hibernate code and I want my code run in 1 transaction let me explain in code
|
3. Is it poor design for DAOs to manage transactions? stackoverflow.comI've been reading about the sun blueprint
|
4. implementing a dao class properly to manage transactions stackoverflow.comI am working on a java web application that calls database backend through hibernate.I use servlets,jsp and tomcat for test/deployment.Most books on java-ee suggested using Dao classes for database calls.As per ... |
5. JPA confusion (managed vs non-managed entities) stackoverflow.comI'm working on a web project, trying to understand the best way to do this sort of thing over and over again:
|
6. Hibernate, Transactions and DAO's coderanch.comI have a bunch of DAO's which have methods such as: findUserById, persistUser, findUserByEmail, etc Now, most methods simply involve running a single hql in a try, catch, finally block: try { // open session and find by id } catch( HibernateException e { // throw an infrastructure exception } finally { // close the session } So in my service ... |
7. Transaction support multiple DAO calls forum.hibernate.orgI have the standard stateless session bean patterns which calls multiple DAO to get the work done all within the same transaction managed at the EJB container . If any db operations fail then exception is thrown and entire transaction is rolled back. I have a datasource defined and a connection pool . The application should work with all the standard ... |
8. dao & wrapper for session and transaction using thread l forum.hibernate.orgRegular Joined: Sat Feb 21, 2004 8:54 pm Posts: 60 Location: Lakewood, California hi, newbie here. trying to write some dao's for some db's. i found the code on the hiberate site that wraps a session in a thread local. but it seems to me that you may want to wrap a transaction also to eliminate a lot of code duplication ... |
9. Refactoring woes: Transaction Demarcation, Facades and DAO forum.hibernate.orgI'm currently refactoring our Hibernate DAO implementation and moving transaction demarcation up into our stateless session bean facades. Currently one issue I am having is that previously my business objects (i.e. Session Beans or any other implementing object implementing our business interface) knew nothing of the Hibernate API. This was all magic encapsulated by the DAO. However, once I move transaction ... |
10. DAO and transactions forum.hibernate.orgHi, I have a design issue implementing my DAO's. I have seen in examples and on the net that a DAO method could typically looks like : Code: public void saveEntity(myDTO daily) throws DAOException { try { ... do something ... } catch (HibernateException e) ... |
11. Question about Generic DAO and JTA forum.hibernate.orgAuthor Message amiljusevic Post subject: Question about Generic DAO and JTA Posted: Mon Apr 24, 2006 2:27 pm Newbie Joined: Mon Apr 17, 2006 10:58 am Posts: 2 Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.1 Mapping documents: |
12. Problem with Generic Dao / JBoss / JTA forum.hibernate.orgHello I am using the Generic DAO approach as described here: http://www.hibernate.org/328.html I am using JBoss and JTA with Beans Managed Transactions. I have set the followong properties: hibernate.current_session_context_class=jta hibernate.transaction.manager_lookup_class= org.hibernate.transaction.JBossTransactionManagerLookup hibernate.transaction.factory_class= org.hibernate.transaction.JTATransactionFactory in my Session Bean I use this code: Code: * saves a given bird to the database ... |
13. HIbernate DAO+JBoss=Unable to locate current JTA transaction forum.hibernate.orgHi, I read the other posts on this, but never got a good answer. I also read the Hibernate chapter 13 and numerous other google results. I am trying to make a hibernate service in JBoss 4.2.2 since it doesn't have one anymore. I am using hibernatetool generated DAO objects. My SessionFactory binds properly and the DAO finds, it but the ... |