Questions tagged [guice-persist]

Guice Persist provides abstractions for working with datastores and persistence providers in Guice applications. It works in a normal Java desktop or server application, inside a plain Servlet environment, or even a Java EE container.

Guice Persist provides abstractions for working with datastores and persistence providers in your Guice applications. It works in a normal Java desktop or server application, inside a plain Servlet environment, or even a Java EE container.

Guice Persist supports a simple approach to transactions and various unit-of-work semantics; both with the same declarative, annotation-based API. Switching between unit-of-work strategies is as simple as changing a configuration option.

It also follows the Guice idioms of using simple, expressive configuration and tries to remain type-safe as far as possible.

http://code.google.com/p/google-guice/wiki/GuicePersist

55 questions
0
votes
1 answer

Dependency problems upgrading Guice with Warp-Persist

We have an application that uses Guice 1.0 with warp-servlet and warp-persist, and we'd like to upgrade to Guice 2 or 3. However, we're hitting a web of dependencies that is making it complicated. Does anyone know of a simple way (as close as…
ThrawnCA
  • 939
  • 1
  • 9
  • 22
0
votes
1 answer

EclipseLink + JPA Guice Persist and Redeployments

I have an infrastructure based on EclipseLink + JPA Guice Persist When I redeploy the application always I have caching problems with caching Entitys and I have to reboot the server (Oracle Weblogic 11g) .This problem is treated in a this post:…
Azimuts
  • 1,102
  • 3
  • 14
  • 33
0
votes
1 answer

c3p0 connection is overdue

I am using c3p0 0.9.2.1, GWT 2.6.0, SQLServer 2012. I am getting an intermittent stackTrace from c3p0 [2015-Feb-03 16:30:12] - [INFO ] - A checked-out resource is overdue, and will be destroyed:…
user2046211
  • 316
  • 1
  • 4
  • 20
0
votes
3 answers

Strange error on createInjector "Unable to method intercept"

I have some experience with guice and i just tried guice-persist. But now i get a very strange error in my very simple module. This is my module: public class VotingModule extends AbstractModule { @Override protected void configure() { …
dermoritz
  • 10,454
  • 16
  • 80
  • 151
0
votes
2 answers

NullPointerException with JPA, Eclipselink and Guice

I have a JpaController class like this: public class JpaController { @Inject private EntityManager em; @Transactional public void create(Message msg) { em.persist(msg); } } and I'm installing a com.google.inject.persist.PersistFilter…
mjaggard
  • 2,090
  • 1
  • 20
  • 36
0
votes
1 answer

How do I configure JpaPersistModule?

Here's my situation. I have a "persistence.xml" with basic JPA properties. I also have several additional properties that I need to inject into JpaPersistModule. These properties (connection strings, etc) come from external components and they are…
andrew.z
  • 959
  • 2
  • 11
  • 24
0
votes
2 answers

EJB Overriding JPA javax.persistence

I'm fairly new to the Java EE space, so pardon my ignorance here; I inherited an application which is using guice-persist and hibernate to handle the ORM. I'm attempting to use a CriteriaQuery, but I'm finding that my…
Jeff Allen
  • 15,749
  • 8
  • 45
  • 67
0
votes
1 answer

Maven Hibernate with Guice-Persist

I'm attempting to use Maven to organize a GWT(GWT-Platform, to be precise) project which uses Guice-persist to map my data objects back to MySQL from Eclipse. I am not having any luck. I've based my code off of the GWTP basic sample's Maven…
Jeff Allen
  • 15,749
  • 8
  • 45
  • 67
0
votes
2 answers

Guice-Persist - "Work already begun on this thread. Looks like you have called UnitOfWork.begin() twice without a balancing call to end() in between."

Our application is a Java-GWT application that uses Guice-Persist and Guice-Servlet extensively. We have never had a problem using the session-per-HTTPRequest feature of Guice-Persist which is similar to what Warp-persist originally used. We are…
benstpierre
  • 30,487
  • 46
  • 163
  • 272
-1
votes
1 answer

Injecting EntityManager with Guice

after I received a very good answer in my post about Guice injection in general, I wanted to know, if you could also help me with injection of EntityManagers in Guice. I already read the article https://github.com/google/guice/wiki/JPA about Guice…
1 2 3
4