[jboss-user] [JBoss Seam] - isNull not working for one-to-one relation

knuwu do-not-reply at jboss.com
Fri Sep 28 03:08:04 EDT 2007


When I try to create a criteria like the following:


  | Criteria c = ((SessionImpl) entityManager.getDelegate())
  |   .createCriteria(Person.class);
  | 
  | pCriteria.add(Restrictions.isNull("location"));
  | 

where location is the attribute of an one-to-one relation, i don't get any hit in the resultlist, even there are records in the database matching this criteria.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089570#4089570

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089570



More information about the jboss-user mailing list