Registry / dependency-injection / guice-persist

guice-persist

JSON →
library7.0.0javamavenunverified

Guice Persist provides a persistence layer for Guice, supporting JPA and other frameworks.

<dependency> <groupId>com.google.inject.extensions</groupId> <artifactId>guice-persist</artifactId> <version>7.0.0</version> </dependency>
INSTALL
IMPORT
SIG · GUICE-PERSIST
G
guice-persist
dependency-injectionjavav7.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PersistService
com.google.inject.persist.PersistService

Start JPA persistence service using Guice Persist.

import com.google.inject.Guice; import com.google.inject.Injector; import com.google.inject.persist.PersistService; import com.google.inject.persist.jpa.JpaPersistModule; public class Example { public static void main(String[] args) { Injector injector = Guice.createInjector(new JpaPersistModule("myUnit")); PersistService service = injector.getInstance(PersistService.class); service.start(); System.out.println("Persistence started"); } }
Debug
Known issues
gotchaGuice Persist requires a JPA provider (e.g., Hibernate) on the classpath.
fix
Add a JPA implementation dependency like org.hibernate:hibernate-core.
affects: *
Upgrade
Version history
7.0.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
39 hits · last 30 days
node
34
Resources
guice-persist — mvn dependency:get guice-persist · libregistry