Hibernate basic question



Hi,

Using Hibernate, I want to get the output of a complex query and map
the resulting columns my application class. How can I do that ?

For example
select a.x, b.x, b.y from a, b where a.id = b.id and b.x in ( select x
from c ) ....

I just need to map the three elements from the query result to my app
class.

Appreciate any help.

TIA

.



Relevant Pages

  • Re: Nochmal Maps bei Hibernate
    ... schau mal in der Hibernate 3.1.2 Doku, ... ich habe eine persistente Klasse ... private Map getMyMap(){return myMap;} ...
    (de.comp.lang.java)
  • Re: Hibernate: how to retreive only few properties in a class
    ... Note the "getEmployeesSummaryList" and the return employee clause. ... I get a java.sql.SQLException: Column 'LoginName' not ... My guess is that Hibernate tries to map every column ... Hibernate to map only the columns found in the ResultSet? ...
    (comp.lang.java.databases)
  • Re: DAO patterns in the "Real World"
    ... > moving around huge objects of which the majority of the attributes I'm ... that's one of the things Hibernate can do. ... Basically, it lets you map ... of 1:n and n:m relationships as Java collections. ...
    (comp.lang.java.programmer)
  • Re: One table One Dao is the best practise?????
    ... Hibernate can deal with 1:n,n:m mapping,but that is very simple in the ... If Using DAO: ... the project to solve complex query or complex update?? ... many cases you won't need SQL if using Hibernate. ...
    (comp.lang.java.programmer)
  • Hibernate: storing a java.util.Map with some extra information
    ... I need to access it from a Java app, if possible via hibernate. ... public class GatheredValues { ... an ID-column is needed for a Map ...
    (comp.lang.java.databases)