We're updating the issue view to help you get more done. 

Allow default field name to be used for @Id property also if @DocumentId is given at another property

Description

The following type definition will wrongly cause a bootstrap error:

1 2 3 4 5 6 7 8 9 10 11 @Entity @Indexed public class Article { @Id @Field long articleId; @DocumentId int documentId; }

The routine in AnnotationMetadataProvider complains that the document id default field would be re-configured through @Field, but that's not the case as "articleId" is not the document id property.

Environment

None

Status

Assignee

Gunnar Morling

Reporter

Gunnar Morling

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Fix versions

Priority

Major