• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Where to put the AnnotationConfiguration class file

 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using tomcat with hibernate and editplus as my IDE. I was going through the link http://jpa.ezhibernate.com/Javacode/learn.jsp?tutorial=01howtogetstartedwithhibernate


and here its mentioned to create a AnnotationConfiguration class file. But there is no mention of where the file need s to be stored . Could anybody please tell where to place the class file in the project
 
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
AnnotationConfiguration is a Hibernate class. BTW where did you read that you have to create a class called AnnotationConfiguration? The link you post doesn't contain "AnnotationConfiguration".
 
Varun Nayudu
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Christian Dillinger wrote:AnnotationConfiguration is a Hibernate class. BTW where did you read that you have to create a class called AnnotationConfiguration? The link you post doesn't contain "AnnotationConfiguration".



Sorry sir i might have posted the previous page here is the next page where it is clearly mentioned to create a AnnotationConfiguration class
http://jpa.ezhibernate.com/Javacode/learn.jsp?tutorial=02validatingthehibernateenvironment
 
Christian Dillinger
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is no need to implement your own AnnotationConfiguration. The page shows where this class comes from and what you can do with it. Tell Hibernate which classes are entities it has to "care" about.
 
Varun Nayudu
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Christian Dillinger wrote:There is no need to implement your own AnnotationConfiguration. The page shows where this class comes from and what you can do with it. Tell Hibernate which classes are entities it has to "care" about.




I am getting the following error messages

Program




Error




I dont know what i have done wrong .Please advice?
 
Christian Dillinger
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks as if your class hasn't been compiled and the class cannot be found. What IDE? Can you see the class file?
 
Varun Nayudu
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Christian Dillinger wrote:Looks as if your class hasn't been compiled and the class cannot be found. What IDE? Can you see the class file?




I am using Editplus .....
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic