dao
Hibernate DAO factory cannot instantiate dao
I have a JSF 2.0/Servlet 3.0 Web application using hibernate with a connection pooled data source on glassfish 3.[详细]
2023-04-11 01:59 分类:问答Is it deemed bad practice to inject the DAO into the constructor? and if so, why?
I have a开发者_开发知识库 (DAL) Data Access Layer (but this question is relevant for DAOs as well) which is communicating with a restful web service in android (which is less relevant other than the f[详细]
2023-04-10 16:12 分类:问答Multiple DAO's vs One DAO with configuration file
I\'m currently in the process of creatin开发者_运维技巧g a data access layer for an application. This application will initially connect to an Oracle database but will later also connect to a DB2 data[详细]
2023-04-10 09:55 分类:问答Typed generic DAO and Entity
currently I\'m trying to implement a typed generic DAO. Ido not even get to compile anything, since NetBeans complains about UserDAOHibernate[详细]
2023-04-10 05:42 分类:问答Spring integration test does not roll back
I\'m using Spring + Hibernate + H2. I do database operations in my integration tests (by calling a service class). I want Spring to rollback the changes after each test method, butI can\'t get it to w[详细]
2023-04-09 13:38 分类:问答GWT RPC: DTO vs. DAO?
I\'ve started learning GWT about a week ago and here\'s the question I can\'t answer for sure. Here\'s the server-side:[详细]
2023-04-08 02:49 分类:问答Merging two dataset
I have one \"big\" TOracleDataSet which I can\'t change \'cause it\'s using in many different parts of huge project. I want to add just one record to this dataset for using in another grid. The solve[详细]
2023-04-07 02:14 分类:问答image servlet in the spring setup
I have a application set up with Spring and Struts. I am trying to display an image in the jsp using the servlet. In the servlet i need to fetch the image to be displayed from the db for which dao is[详细]
2023-04-07 00:36 分类:问答What is the best approach to write a data access object (DAO)?
I was trying to write a user authentication system in Java. So I wrote some DAO class. First I did write a class named Persistence which is abstract. It is responsible for holding some common attribut[详细]
2023-04-06 17:20 分类:问答ThreadLocal JPA EntityManager in DAO
In my DAO classes I have a reference to an EntityManager. I want to make the acces to the EntityManager thread-safe by using ThreadLocal.[详细]
2023-04-05 17:31 分类:问答