> + */
> +package org.jclouds.jdbc.repository;
> +
> +import com.google.inject.Inject;
> +import com.google.inject.Provider;
> +
> +import javax.persistence.EntityManager;
> +import java.io.Serializable;
> +import java.lang.reflect.ParameterizedType;
> +
> +public abstract class GenericRepository<T, PK extends Serializable> {
> +
> + protected Class<T> entityClass;
> +
> + @Inject
> + protected Provider<EntityManager> entityManager;
Prefer constructor injection, to make the constructor package private and this
field final.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/173/files#r29934289