ResultSet « Map « JPA Q&A





1. How Can I Query a DB for ResultSet which is not Mapped into an Entity(JPA, JBoss)    stackoverflow.com

I'm running an application in JBoss and Using JPA. For a report I need a group by query which I expect to return a result set with the following structure example:

count,idA,idB
I did ...

2. hibernate resultset and mapping confusion    stackoverflow.com


I was having a problem in getting result through hibernate.
I have four tables SnsUser, Participant, Interaction, Content; SnsUser & Interaction has many-2-many relationship and Interaction and Content has many-2-one. (SnsUser and Interation ...

3. Can JPA return results as a map?    stackoverflow.com

We are currently build a map manually based on the two fields a named query returns, because JPA only provides a getResultList().

@NamedQuery{name="myQuery",query="select c.name, c.number from Client c"}

HashMap<Long,String> myMap = new HashMap<Long,String>();

for(Client ...

4. JPA- Map the resultset from a stored procedure call to an entity class    stackoverflow.com

I am using eclipselink, and I have the following code to call a stored procedure:
Query q = em.createNativeQuery("exec ....");
List list = q.getResultList();
Is ...

5. Creating mapping files from resultset    forum.hibernate.org

6. Native query resultset mapping    forum.hibernate.org

7. Allowing Hibernate to map from your ResultSets    forum.hibernate.org

8. Empty children under a parent but the ResultSet isn't empty!    forum.hibernate.org

Hi I think I have a newbie problem... I use Hibernate 1.0.2 1 year ago, It wors well, and I try now to use the 3.0 beta for some prototyping. I just try to get a collection of "children" linked to a "parent". If I try to load a Parent or a Child by using the primary key it works well, ...

9. pb mapping a stored procedure resultset    forum.hibernate.org

Hi all, I am trying to call a stored procedure via hibernate 3, and map the resultset. I could find mapping examples in the the hibernate distribution , but it always map properties from an entity (a class with a defined mapping). My pb is my stored proc is returning data from different tables, not only one. Do i need to ...





10. Can I get resultset (table rows) in java.util.Map    forum.hibernate.org

Mapping documents: N/A Code between sessionFactory.openSession() and session.close(): N/A Full stack trace of any exception that occurs: N/A The generated SQL (show_sql=true): N/A Debug level Hibernate log excerpt: N/A Problems with Session and transaction handling? No Hibernate version: 3.0 Database: Oracle 10g R2 Problem: Fetching table rows as Map object with column name as key and corresponding column value as value ...

11. Can I map a resultset without mapping all tables related?    forum.hibernate.org

Hi, How can I map a native SQL query like the following? Code: select a.id as ID a.qty as Quantity ...

12. Can I map a resultset without mapping all tables related?    forum.hibernate.org

Hi, How can I map a native SQL query like the following? Code: select a.id as ID a.qty as Quantity ...

13. New feature: resultset to single map transformer    forum.hibernate.org