# HibernateProcessor wrong warnings after upgrading to 6.5

**URL:** <https://discourse.hibernate.org/t/hibernateprocessor-wrong-warnings-after-upgrading-to-6-5/9630>\
**Category:** Hibernate ORM\
**Created:** [May 29, 2024, 8:12am UTC](https://discourse.hibernate.org/t/hibernateprocessor-wrong-warnings-after-upgrading-to-6-5/9630 "2024-05-29T08:12:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArnaudLec](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/arnaudlec/32/1768_2.png) [@ArnaudLec](https://discourse.hibernate.org/u/ArnaudLec)\
**Post date:** [May 29, 2024, 8:12am UTC](https://discourse.hibernate.org/t/hibernateprocessor-wrong-warnings-after-upgrading-to-6-5/9630/1 "2024-05-29T08:12:05Z")

</div>

Hi,

I upgraded hibernate to version 6.5 in my project and it’s reporting warning about the association mappings when generating the metamodel which seems wrong in my case.  
I suppose it’s related to the new feature : [[HHH-17875] - Hibernate JIRA](https://hibernate.atlassian.net/browse/HHH-17875).

Here is a reproducer : [GitHub - ArnaudLec/hibernate-processor-bug](https://github.com/ArnaudLec/hibernate-processor-bug)

It’s reporting the following problems in the code when building the project with `mvn clean compile`:

```auto
[WARNING] diagnostic: src\main\java\com\example\entity\Organization.java:19: warning: member 'organization' of 'Assignment' is not annotated '@ManyToOne'
  @OneToMany(mappedBy = "organization", fetch = FetchType.LAZY, orphanRemoval = true)
                        ^
[WARNING] diagnostic: src\main\java\com\example\entity\Person.java:19: warning: member 'person' of 'Assignment' is not annotated '@ManyToOne'
  @OneToMany(mappedBy = "person", fetch = FetchType.LAZY, orphanRemoval = true)
                        ^

```

The generated metamodel is fine and works correctly, only the warnings seems wrong in this case.

If the problem is in my code, I don’t see what’s wrong with it.

---

<div class="post-metadata">

**Author:** ![beikov](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/beikov/32/258_2.png) [@beikov](https://discourse.hibernate.org/u/beikov)\
**Post date:** [May 29, 2024, 8:23am UTC](https://discourse.hibernate.org/t/hibernateprocessor-wrong-warnings-after-upgrading-to-6-5/9630/2 "2024-05-29T08:23:47Z")

</div>

Please create a new Jira issue and attach your reproducer to that. Also, please post the link to the Jira issue here.

---

<div class="post-metadata">

**Author:** ![ArnaudLec](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/arnaudlec/32/1768_2.png) [@ArnaudLec](https://discourse.hibernate.org/u/ArnaudLec)\
**Post date:** [May 29, 2024, 8:29am UTC](https://discourse.hibernate.org/t/hibernateprocessor-wrong-warnings-after-upgrading-to-6-5/9630/3 "2024-05-29T08:29:52Z")

</div>

Done : [[HHH-18179] - Hibernate JIRA](https://hibernate.atlassian.net/browse/HHH-18179)
