• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to load hibernate.cfg.xml in annotation mode...

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for reading my post
Hibernate version: 3.2

I have problem with loading hibernate.cfg.xml in my application.
here is the code snippet:

when i try to run this code it return


while my directory structure is like:
src folder contains:
-learn_hiber\chapter4
-learn_hiber\hibernate.cfg.xml
-learn_hiber\log4j.properties

the chapter 4 folder contains my annotated classes source code
src is roof folder for all my source codes.
Thanks
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!