Unique entities based on field value

This is probably not the right way to do it. Maybe look into that instead:

There is not in Hibernate Search at the moment, but there could be in the future: [HSEARCH-868] - Hibernate JIRA
If you use Elasticsearch, you can probably leverage the relevant feature through the Elasticsearch extension in Hibernate Search, but that involves dealing with JSON.

It’s a good solution if:

Somehow I doubt it.

1 Like