3
votes

I have generated Jhipster Application which was working fine & was building successfully but after generating the entities it is not building & showing this error in file

which is /src/main/java/com/foodnet/mandi/domain/Buyer.java

Actually i generated the buyer entity

2
Please, provide you code. - timiTao
i found out its solution by adding the dependency of org.hibernate.annotaions in pom.xml file - Dhiresh Budhiraja
If you have solution, could you add new answer and mark you question as resolved? - timiTao

2 Answers

5
votes
I put a dependency in pom.xml file

<dependency>
  <groupId>org.hibernate</groupId>
  <artifactId>hibernate-annotations</artifactId>
  <version>3.5.6-Final</version>
</dependency>

& My problem was solved

0
votes

Make sure you have hibernate jar included in classpath. Which build tool are you using?