SQL « Component « JPA Q&A





1. Returning component values in native SQL Queries    forum.hibernate.org

Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 2x This is a question about using native SQL queries. Has anyone encountered this? I have a user class with a component for address class. The address data however is in the user table.

2. PropertyAccessException from CGLIB,Component = java.sql.Date    forum.hibernate.org

I am getting a PropertyAccessException exception from CGLIB when I have a Component that contains a java.sql.Date property that is mapped as a "timestamp". I have observed the following facts: 1) If I use java.util.Date instead of java.sql.Date it works. 2) If I map as a "date" instead of a "timestamp" it works. 3) I only get this problem for Components, ...

3. HQL produces buggy SQL when component mapping is involved    forum.hibernate.org

Author Message rags_1979 Post subject: HQL produces buggy SQL when component mapping is involved Posted: Sun Mar 26, 2006 4:59 am Newbie Joined: Wed Oct 12, 2005 4:39 pm Posts: 15 Location: India I have a StudentEnrollment Object mapped one-to-one with a StudentEnquiry Object. StudentEnquiry object has a component mapping with StudentCentreTimePreferences. Now the issue is that my HQL ...

4. Custom SQL alias help using named query to component key map    forum.hibernate.org

Newbie Joined: Mon Apr 13, 2009 6:03 pm Posts: 1 I have three related classes Address.java -> one to many relationship with AddressPreference AddressPreference.java -> has attribute type AddressPreferenceID id AddressPreferenceID.java When trying to use custom SQL for a named query the mapping is not working because I don't know how to alias the columns correctly. the difficulty is due to ...