wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes Hibernate formula issue :com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate formula issue :com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name " Watch "Hibernate formula issue :com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name " New topic
Author

Hibernate formula issue :com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name

kamlendra kumar
Greenhorn

Joined: Nov 09, 2009
Posts: 23
Hi All,

I am using hibernate 3.4, spring 2.5.4 and SQL server database. I am facing a weird problem with hibernate formula for one of my hibernate mapping class.

Below are the details:

application-context.xml:


RiskFunctionModel.hbm.xml:


RiskLevelModel.hbm.xml:


FunctionalAreaModel.hbm.xml:


TestDao.java:


Query 1 & 2 are executing without any issue but when query 3 is being executed, i get following exception:


Can somebody please help me figuring out what i'am doing wrong here.

Thanks in advance,
Kamlendra
kamlendra kumar
Greenhorn

Joined: Nov 09, 2009
Posts: 23
here is the sql which is being generated by hibernate:


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate formula issue :com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name
 
Similar Threads
Initial SessionFactory creation failed.org.hibernate.InvalidMappingException: Could not parse mappin
select in hibernate
Spring hibernate integration problem
Hibernate: Executing stored procedure using hibernate
Hibernate; error executing stored procedure