Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate/Spring/Oracle: Problem acessing objects from a query

 
vijaya sharma
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using spring/hibernate

The following code is working perfect when i DO NOT use spring



any comments?

[Edited to include code tags - Paul Sturrock]
[ January 12, 2006: Message edited by: Paul Sturrock ]
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What Error/Exception/unexpected behaviour do you see when you use Spring? And how do you run this without Spring? getHibernateTemplate() is a Spring method, so you must be running different code when you don't use Spring, yes?
 
vijaya sharma
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Q)What Error/Exception/unexpected behaviour do you see when you use Spring?

A)When i run This code, i excpect to get the name of the hibernate mapped class to be returned(which representes a table), like wise when i am using query on muliple table and multiple columns, I expect the object[] class to return me each object that i refer to in the query.The one below was an example quering one table.


Q)And how do you run this without Spring? getHibernateTemplate() is a Spring method, so you must be running different code when you don't use Spring, yes?
A)Sorry Jeff, i assumed that you would ignore getHibernateTemplate Method since it's spring's Method. I meant the code to get the class name from the query works well, when used with only Hibernate and not spring(Just to point out that specific peice of code is not what i think should be a problem).

Thank you for responding to my queries.
Vijay.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic