• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SMS_Invoices not found. Specify owner.objectname or use sp_help to check whether the object exists (

 
Alejandro Barrero
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This error started occurring after I changed the name of the table in the configuration file. I had <mapping class="com.ctm.mobile.order.sms.SMSInvoice" />

I had two classes


I am executing the code


Everything worked fine and the table was created by Hibernate. My manager asked me to changes the classes to


For this change I added <mapping class="com.ctm.ordermanagement.order.Invoice" /> to the config file.

I am not strong on Hibernate and I cannot judge the changes requested by my manager. All I know is it is not working.

I have searched for the error on google and all I get is that the table does not exist; I know that but it was being created before. I don't know what I am doing wrong.

Your help will be greatly appreciated.
 
Alejandro Barrero
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the solution. I had to comment out all other class mapings on the config file. Weird.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic