• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Where to put the AnnotationConfiguration class file

 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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 .....
 
You can thank my dental hygienist for my untimely aliveness. So tiny:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic