# 6.2.1 upgrade '@NotFound' is not a '@ManyToMany' association

**URL:** <https://discourse.hibernate.org/t/6-2-1-upgrade-notfound-is-not-a-manytomany-association/7521>\
**Category:** Hibernate ORM\
**Created:** [April 18, 2023, 7:20am UTC](https://discourse.hibernate.org/t/6-2-1-upgrade-notfound-is-not-a-manytomany-association/7521 "2023-04-18T07:20:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghuber](https://avatars.discourse-cdn.com/v4/letter/g/aeb1de/32.png) [@ghuber](https://discourse.hibernate.org/u/ghuber)\
**Post date:** [April 18, 2023, 7:20am UTC](https://discourse.hibernate.org/t/6-2-1-upgrade-notfound-is-not-a-manytomany-association/7521/1 "2023-04-18T07:20:19Z")

</div>

Hello,

I am upgrading from 6.1.7.Final.

I now have this error:

annotated ‘@NotFound’ is not a ‘@ManyToMany’ association

my join:

```auto
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "username", insertable = false, updatable = false)
@NotFound(action = NotFoundAction.IGNORE)
public MyPojo getDetail() {
	return detail;
}

```

I could find this change mentioned in the upgrade guide.

Is this correct? ie I have to remove all the @NotFound annotations?

Cheers

---

<div class="post-metadata">

**Author:** ![ghuber](https://avatars.discourse-cdn.com/v4/letter/g/aeb1de/32.png) [@ghuber](https://discourse.hibernate.org/u/ghuber)\
**Post date:** [April 18, 2023, 7:35am UTC](https://discourse.hibernate.org/t/6-2-1-upgrade-notfound-is-not-a-manytomany-association/7521/2 "2023-04-18T07:35:20Z")

</div>

OK sorry, I found the answer in the list:

This annotation never did anything for `@OneToMany` or `@ManyToMany`, and we wanted to tell users to get rid of it, since it might be confusing to readers of the model, giving a wrong impression about behavior.
