entitymanager
EntityManager and two DAO with PersistenceContextType.EXTENDED
I have a problem with my entity manager in my application. I have two DAO clasess like this: @Repository[详细]
2023-02-04 22:50 分类:问答One entityManger finds entity , the other does not
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[详细]
2023-02-01 00:08 分类:问答How to mock EntityManager? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.[详细]
2023-01-27 01:59 分类:问答How frequently should I create an EntityManager?
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[详细]
2023-01-26 03:02 分类:问答how to set limitation in EntityManager (JPA) L1 or L2 cache size
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[详细]
2023-01-21 07:02 分类:问答Hibernate v3.6 : Issue with the EntityManager method "refresh"
The following code throws an exception when invoking \"em.refresh(p)\": 1: EntityManager em = emf.createEntityManager();[详细]
2023-01-21 06:23 分类:问答JPA - database gets updated only when method is @Transactional
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[详细]
2023-01-19 10:15 分类:问答java and jboss, with SQL server. Mulitple insert statements in a native query using entitymanager, not working; but does work in sql
String myQuery1= \"insert into mytable(mycol) values(myval) \\ngo\"; String myQuery2= \"insert into mytable(mycol) values(myval2) \\ngo\";[详细]
2023-01-17 17:35 分类:问答How to define the constructor of an EJB3 session bean
I\'m creating an EJB3 module which tries to respect a specific facade/implementation design pattern. My facade should be totally EJB free.[详细]
2023-01-17 13:52 分类:问答How to use JPA EclipseLink to connect to the DB in a multi layer environment (REST + EJB + Core)?
I am using Glassfish v3 server. Usually the DB connection with EJB3 + JPA (Eclipselink) is 开发者_JS百科done through injection, with @PersistenceUnit or @Persistencecontext.[详细]
2023-01-12 01:07 分类:问答