what is the difference between (using warp-persist):

@Inject Provider<EntityManger> em;

and

@Inject EntityManager em;

???


public abstract class GenericBO<T> {
        protected final Provider<EntityManager> em;

        public GenericBO(Provider<EntityManager> em) {
                this.em = em;
        }

}
public class CustomerBOImpl extends GenericBO<Cliente> implements
CustomerBO {
        @Inject
        public CustomerBOImpl(final Provider<EntityManager> em) {
                super(em);
        }
}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to