Skip to content

Some extensions for the Ninja Framework (https://www.ninjaframework.org/) for Consul, RabbitMQ, and Hibernate.

License

Notifications You must be signed in to change notification settings

jcampos8782/ninja-ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ninja-extensions

Guice modules and other extensions to the Ninja Framework (http://www.ninjaframework.org).

Hibernate Module

A Guice Module to enable programmatic configuration of Hibernate. See http://www.github.com/jcampos8782/guice-persist-hibernate).

Respects Ninja frameworks @UnitOfWork and GuicePersist's @Transactional annotations.

Exposed bindings:

  1. Provider<Session>
  2. Provider<UnitOfWork>
  3. Provider<EntityManager>

Usage

Install just as you would any other Module. Intended as a replacement (not a supplment) to Ninja Framework's JpaModule.

public void configure(NinjaProperties ninjaProperties) {
    install(new HibernateModule.Builder().entityProvider(SomeEntityClassProvider.class).propertyProvider(SomePropertyProvider.class).build());
}

About

Some extensions for the Ninja Framework (https://www.ninjaframework.org/) for Consul, RabbitMQ, and Hibernate.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages