AR (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HSEARCH-4352 (
https://hibernate.atlassian.net/browse/HSEARCH-4352?atlOrigin=eyJpIjoiYjZ...
)
Re: MappingException: property [xxx] not found on entity [yyy] (
https://hibernate.atlassian.net/browse/HSEARCH-4352?atlOrigin=eyJpIjoiYjZ...
)
Issue is marked es solved for the version '6.0.8.Final’, but i’m using HibernateSearch
'6.1.8.Final’ and HibernateCore ‘5.6.15.Final' and still face it for some reason.
There is a bidirectional mapping
Class A
@OneToMany(cascade=CascadeType.ALL, orphanRemoval=true, fetch=FetchType.EAGER,
mappedBy=“a") @MapKey(name="name")
private Map<String, P> parameters = new HashMap<>();
@IdClass(B.PK.class)
Class B
@Id @ManyToOne(optional=false)
private A a;
Leads to: property [a] not found on entity [B]
The workaround for it was to replace the mapping for composite primary key of B from
@IdClass to @EmbeddedId.
So now it works, but still wondering why … since the issue is solved
(
https://hibernate.atlassian.net/browse/HSEARCH-4352#add-comment?atlOrigin...
) Add Comment (
https://hibernate.atlassian.net/browse/HSEARCH-4352#add-comment?atlOrigin...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100227- sha1:28a616e )