Dhiresh Budhiraja
Dhiresh Budhiraja

Reputation: 2725

package org.hibernate.annotations does not exist

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

Upvotes: 5

Views: 14393

Answers (2)

Dhiresh Budhiraja
Dhiresh Budhiraja

Reputation: 2725

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

Upvotes: 6

VishalS
VishalS

Reputation: 73

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

Upvotes: 0

Related Questions