All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jwebmp.guicedpersistence.injectors.CustomPersistModule Maven / Gradle / Ivy

Go to download

A complete JPA 2.1 implementation for Standalone or EE Implementation. Enables Multiple Persistence units with full JTA Support using BTM. Perfect for Guice implementations, test suites, and Guice enabled Web Applications or EAR Projects. Requires JDK 8

There is a newer version: 0.66.0.1
Show newest version
package com.jwebmp.guicedpersistence.injectors;

import com.google.inject.AbstractModule;
import com.google.inject.persist.PersistService;
import com.google.inject.persist.UnitOfWork;

public abstract class CustomPersistModule
		extends AbstractModule
{

	@Override
	protected final void configure()
	{
		configurePersistence();

		requireBinding(PersistService.class);
		requireBinding(UnitOfWork.class);
	}

	protected abstract void configurePersistence();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy