• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where to put the AnnotationConfiguration class file

 
Varun Nayudu
Ranch Hand
Posts: 159
  • 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
 
Christian Dillinger
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: 159
  • 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: 159
  • 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: 159
  • 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 .....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic