• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate

 
raj baig
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 547
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic