fetch « JPA « JSF Q&A





1. EntityManager not fetching from database?    stackoverflow.com

I have entities: Post, User, Comment with bidirectional relationships:

---------   1     *  ---------
| Post  | <--------> |Comment|
---------        ...

2. Why do I always get NULL in JSF fetching postgresql boolean field?    stackoverflow.com

I have Postgresql 8.4 table

CREATE TABLE users
(
  username character varying(50) NOT NULL,
  "password" character varying(50) NOT NULL,
  enabled boolean NOT NULL,
  type_of_signature boolean NOT NULL,
  companyusers2_id ...

3. Fields not retrieved on Lazy Fetching+OpenSessionInView+JSF    forum.hibernate.org

public Collection getAll() throws ExceptionDAO { Session session = DAOHibernateFactory.getSession(); try { List lcrs = session .createCriteria(LCR.class).list(); return ...