GeeCON Prague 2014*
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


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:


 
GeeCON Prague 2014
 
subject: Hibernate formula issue :com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name