annotation « JPA « JSF Q&A

1. Can't access lazy annotated but initialized hibernate collection from JSF2

I have a many-to-many relationship between the two entities called events and artists, both are annotated to be lazy loaded. When I load an artist, I initialize its events because the ...

2. JSF 2: @ManagedProperty annotated type returns null

I have this Service bean:

public class BookService
    protected EntityManager entityManager;

    public BookModel find(Long id) {