aspose file tools
The moose likes Object Relational Mapping and the fly likes hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "hibernate " Watch "hibernate " New topic
Author

hibernate

raj baig
Ranch Hand

Joined: Jul 11, 2006
Posts: 96
hi,

To get the information from the table using hibernate we use something like session.createQuery("")and we need to get the list obj......
but from the session obj getting the connection object,statement obj and resultset obj.

i would like to know whether my way is a good approach or not.
this approach is a hibernate approach or not.
pascal betz
Ranch Hand

Joined: Jun 19, 2001
Posts: 547
I'm not sure I understand your question... whats your approach ?
Do you want to get the Connection from the Session and do all the JDBC stuff (mapping ResultSet values to Objects and so on) yourself. Why do you want to use Hibernate then ? Just use JDBC directly. Or a framework closer to JDBC (e.g iBatis).
If this is not what you wanted to ask... then just ignore it :-)

pascal
 
 
subject: hibernate
 
Threads others viewed
Convert bi-directional object graph to uni-directional
why Noclassdeffounderror
Question relating to "Hibernate Recipes: A Problem-Solution Approach"
HIBERNATE
request.setAttribute and getAttribute problem
IntelliJ Java IDE