Quote:
In a project I'm running into some requirements that are solveable with classbridges but would be nice for an annotation. I'm posting them here for consideration:
* Specify the fields to embed in IndexedEmbedded in a bean style manner,
@IndexedEmbedded
@IndexFields(fields="user.id,user.address.street")
That sounds very much like
https://hibernate.onjira.com/browse/HSEARCH-886. Work is already in progress on this issue.
Quote:
* Maximize the number of records to index in a OneToMany relation (e.g. Facebook style comments to wall post, always display max 2)
@OneToMany([...])
@IndexedEmbedded
@IndexMaxRecords(value=1)
This this a very specific use case. I am not sure whether it calls for a new annotation. Instead of a custom class bridge you can also use a custom field bridge. You can of course just create a Jira issue and see what happens. If you even provide a patch it might get includes after all ;-)
--Hardy