Drop @ProvidedId annotation

Description

This annotation was used by Infinispan Query but is no longer required since we now assume all entities are treated by default as @ProvidedId (in Infinispan Query) and the option doesn't seem to be useful in the ORM users world.

Functionality was replaced by org.hibernate.search.cfg.spi.SearchConfiguration.isIdProvidedImplicit()

Activity

Show:

Yoann Rodière May 13, 2019 at 2:20 PM

Done as part of the groundwork of Hibernate Search 6: the POJO mapper may be configured in "provided ID" mode, as shown in org.hibernate.search.integrationtest.mapper.pojo.providedid.ProvidedIdIT, but there is no @ProvidedId annotation anymore, and we won't restore it.

Yoann Rodière January 20, 2017 at 4:18 PM

For the record, in order to remove this annotation:

  • We'll have to decide what to do of the corresponding programmatic API, because it relies on this annotation to represent the passed options. Important note: this API wasn't deprecated as part of HSEARCH-2310, so removing it in a minor seems a bit... harsh?

  • If we want to use only configuration options (and not the programmatic API), we may have to add new options to set the provided ID field name, the field bridge, etc

Sanne Grinovero July 5, 2016 at 5:32 PM

Emmanuel Bernard August 19, 2014 at 1:51 PM

But how do you offer the ability to define the bridge?

Hardy Ferentschik August 7, 2014 at 8:59 PM

+1

Fixed

Details

Assignee

Reporter

Sprint

Fix versions

Priority

Created August 7, 2014 at 12:58 PM
Updated May 24, 2019 at 1:38 PM
Resolved May 13, 2019 at 2:20 PM