NamedQuery « Map « JPA Q&A





1. JPA NamedQuery defined in one entity does not find another joined Hibernate xml-mapped entity    stackoverflow.com

I am extending an existing project which has a set of Entities mapped with Hibernate mapping files (*.hbm.xml). For my new entity I wanted to use annotations, both for mapping and ...

2. Namedquery result in a Map    forum.hibernate.org

3. NamedQuery for promoting children    forum.hibernate.org

Newbie Joined: Thu Mar 29, 2007 2:20 pm Posts: 6 Hi guys, I have an entity with a parent/children relation. One of the requirements was to promote the children whenever the parent is being deleted so the new parent of the children will be their grandfather. When I try to use the bellow approach an error is being raised: Error: Code: ...

4. JPQL NamedQuery mapping problem    forum.hibernate.org

Hi, I'm a newcomer to ORM and am switching from Toplink Essentials to Hibernate. My named query (which worked fine in Toplink) won't run on Hibernate. It throws the following exception: 2007-07-07 18:03:58,906 4719 [ main] ERROR ernate.impl.SessionFactoryImpl - Error in named query: myQuery org.hibernate.QueryException: could not resolve property: myDate of: MyMappedClass [SELECT o FROM MyMappedClass o WHERE o.myDate = :target_date] ...