com.google.inject.persist.jpa

Class JpaPersistModule

  • All Implemented Interfaces:
    Module


    public final class JpaPersistModule
    extends PersistModule
    JPA provider for guice persist.
    Author:
    dhanji@gmail.com (Dhanji R. Prasanna)
    • Constructor Detail

      • JpaPersistModule

        public JpaPersistModule(String jpaUnit)
    • Method Detail

      • properties

        public JpaPersistModule properties(Map<?,?> properties)
        Configures the JPA persistence provider with a set of properties.
        Parameters:
        properties - A set of name value pairs that configure a JPA persistence provider as per the specification.
        Since:
        4.0 (since 3.0 with a parameter type of java.util.Properties)
      • addFinder

        public <T> JpaPersistModule addFinder(Class<T> iface)
        Adds an interface to this module to use as a dynamic finder.
        Parameters:
        iface - Any interface type whose methods are all dynamic finders.

Copyright © 2006-2016 Google, Inc.. All Rights Reserved.