annotation « JPA « JSF Q&A





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

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    stackoverflow.com

I have this Service bean:

@Stateless
public class BookService
{
    @PersistenceContext(unitName="persistentUnit")
    protected EntityManager entityManager;

    public BookModel find(Long id) {
       ...