Forums Register Login

Urgent Help to call Stored Proc from Hibernate Mapping Exception.

+Pie Number of slices to send: Send
Hi,

I have a stored proc as given following:



tmp_usersreport is a global temp table defined in ORACLE DB.

My Hibernate mapping is called sp.hbm.xml:




My return DTO is:






Java Code to call stored proc:



Exception is:

Initial SessionFactory creation failed.org.hibernate.MappingException: Could not read mappings from resource: sp.hbm.xml
Exception in thread "main" java.lang.ExceptionInInitializerError
at HibernateUtil.<clinit>(HibernateUtil.java:17)
at test4.test(test4.java:55)
at test4.main(test4.java:17)
Caused by: org.hibernate.MappingException: Could not read mappings from resource: sp.hbm.xml

Please Help. This is my first post here.

Thanks in adv.
+Pie Number of slices to send: Send
Jitu,
Welcome to JavaRanch!

I added code tags to your post. Note how it's easier to read.

This sounds like a question about the Hibernate side of things. I'll move it to our Object/Relational forum for you. There will be a link to it from the original JDBC location so it will be easy to find.
+Pie Number of slices to send: Send
This is a duplicate post, so I am going to close this one.

Please do not duplicate post. Choose the most appropriate forum and just post in that one forum.

Thanks for understanding

Mark
Get me the mayor's office! I need to tell her about this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


Reply locked
This thread has been viewed 1942 times.
Similar Threads
Caching Issues with Hibnernate
Exception while calling stored proc from hibernate. URGENT Help
Working Example of Hibernate Call to an Oracle Stored Proc.
query on Hibernate
Sybase stored proc error
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 12:38:37.