I have a problem with my entity manager in my application. I have two DAO clasess like this: @Repository
I have a very strange behavior in my program. I have 2 classes (class LogIn and CreateGame) where i have injected an EntityManager in each using the annotation
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
I have an EntityManagerFactory for which I can create one (or multiple) EntityManager instances. I\'m using a Servlet environment, and I\'ve got one EntityManagerFactory wired up to the servlet (via t
How to set L1 or L2 cache size-limitation. I concern of increasing the cache-size. One way is defining timeou开发者_如何学Pythont for cache but i want to know is it possible to make a constraint for c
The following code throws an exception when invoking \"em.refresh(p)\": 1: EntityManager em = emf.createEntityManager();
I\'ve encountered a problem I don\'t really understand - unless a method working with the DAO is annotated as @Transactional, the underlying database doesn\'t get updated. My app runs on JPA/Hibernate
String myQuery1= \"insert into mytable(mycol) values(myval) \\ngo\"; String myQuery2= \"insert into mytable(mycol) values(myval2) \\ngo\";
I\'m creating an EJB3 module which tries to respect a specific facade/implementation design pattern. My facade should be totally EJB free.
I am using Glassfish v3 server. Usually the DB connection with EJB3 + JPA (Eclipselink) is 开发者_JS百科done through injection, with @PersistenceUnit or @Persistencecontext.