0

I was trying to use the annotation @FieldMatch in a web application with Spring Framework.

These are the jars i added

enter image description here

but Eclipse tells me "FieldMatch cannot be resolved to a type"; I thought I needed Hibernate jars but I was wrong. What jar i need?

MDP
  • 4,177
  • 21
  • 63
  • 119

1 Answers1

0

It's in hibernate validator, if you're using maven, add this dependency :

<dependency>
  <groupId>org.hibernate</groupId>
  <artifactId>hibernate-validator</artifactId>
  <version>5.1.2.Final</version>
</dependency>
Pierre Rust
  • 2,474
  • 18
  • 15
  • I edited my post adding the jar i already added to my Java Build Path in Eclipse. – MDP Sep 24 '14 at 11:58
  • I also added hibernate-validator-5.1.2.Final but i still get the same problem. – MDP Sep 24 '14 at 12:36