I am new in Hibernate and JPA and I have problem with this annotation. Could someone explain me in simple words what this annotation actually doing, becouse documentation is hard to understand for me in this case.
EDIT I understand what Persistent Context is, but in code I have for example something like that:
@Repository
public class AbstractRepository<E extends Identifable> implements IRepository<E> {
private Class<E> clazz;
@PersistenceContext
protected EntityManager em;
And I have problem with what @PersistenceContext doing. Sorry, Maybe I was not specific.