We automatically infer the decimal scale of properties for non-ID JPA attributes (see [https://github.com/hibernate/hibernate-search/blob/c26249f61e9d75cb4f425cc57faf73552fa90826/mapper/orm/src/main/java/org/hibernate/search/mapper/orm/mapping/impl/HibernateOrmMappingPropertiesMetadataContributor.java#L98-L112|https://github.com/hibernate/hibernate-search/blob/c26249f61e9d75cb4f425cc57faf73552fa90826/mapper/orm/src/main/java/org/hibernate/search/mapper/orm/mapping/impl/HibernateOrmMappingPropertiesMetadataContributor.java#L98-L112|smart-link]) so that users can use {{@GenericField}} for their {{BigDecimal}} fields and everything works transparently.
But for some reason, this doesn’t work for entity identifiers; see [https://discourse.hibernate.org/t/migration-hibernate-search-from-5-11-to-6-0-10-final/7136|https://discourse.hibernate.org/t/migration-hibernate-search-from-5-11-to-6-0-10-final/7136|smart-link]
We should make it work, it’s probably just a matter of retrieving the metadata from somewhere else. |
|