App Mapping fail when there is class with multiple @Id

Description

1/ Everything is ok with Hibernate Search 5.x
2/ migrate to 6.0.2 final generate this error :

Caused by: org.hibernate.MappingException: property [imei] not found on entity [net.octoplus.db.UserPush]

with UserPush class not Indexed :

NB : if i comment // @Id on imei property... it's fail on the next table with multiple @Id even if i didn't use these tables on a related on which is @Indexed

After one day of searching a solution... i came back to hibernate search 5.x

May be i miss something in my configuration...

Thanks for your help

The complete exception :
_

_

Environment

Spring boot 2.3.9 or 2.4.4. Hibernate 5.4.28 spring-orm

Activity

Show:
Olivier
March 25, 2021, 4:29 PM

done

Fabio Massimo Ercoli
March 25, 2021, 4:27 PM

Sure you can send them to fabio@hibernate.org

Olivier
March 25, 2021, 4:24 PM

how can i send it directly to you ?

Fabio Massimo Ercoli
March 25, 2021, 4:20 PM

Can I ask you the full code of the classes: UserPush and User?

Thanks

Olivier
March 25, 2021, 4:15 PM

Hi fabio,

there’s no @Id on User entity field of UserPush ( cf. pb description )

actually , there’s no reference on User entity to UserPush (no @OneToMany List<UserPush) or something else )

problem occurs in every entity’s with multiple @Id

at org.hibernate.search.mapper.orm.mapping.impl.HibernateOrmMetatadaContributor.resolveMappedByPath(HibernateOrmMetatadaContributor.java:226) fail when it try to find a property name on entity with multiple @id

Assignee

Fabio Massimo Ercoli

Reporter

Olivier

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Fix versions

Affects versions

Priority

Blocker