Skip to content

Commit

Permalink
HSEARCH-2001 Add missing @SortableField annotations in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere authored and Sanne committed Apr 12, 2017
1 parent e54ad8a commit 8ea87a4
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -30,6 +30,7 @@
import org.hibernate.search.annotations.Fields;
import org.hibernate.search.annotations.Indexed;
import org.hibernate.search.annotations.IndexedEmbedded;
import org.hibernate.search.annotations.SortableField;
import org.hibernate.search.annotations.SortableFields;
import org.hibernate.search.annotations.Store;
import org.hibernate.search.annotations.TokenFilterDef;
Expand Down Expand Up @@ -415,7 +416,8 @@ private class Person {

@SortableFields({
@org.hibernate.search.annotations.SortableField(forField = "ageForStringSorting"),
@org.hibernate.search.annotations.SortableField(forField = "ageForIntSorting")
@org.hibernate.search.annotations.SortableField(forField = "ageForIntSorting"),
@org.hibernate.search.annotations.SortableField(forField = "ageForNullChecks")
})
@Fields({
@Field(name = "ageForStringSorting", store = Store.YES, analyze = Analyze.NO, bridge = @FieldBridge(impl = IntegerBridge.class) ),
Expand Down Expand Up @@ -443,6 +445,7 @@ private class Person {
final List<Friend> friends;

@Field
@SortableField
@IndexedEmbedded//TODO improve error message when this is missing
Integer[] array;

Expand Down

0 comments on commit 8ea87a4

Please sign in to comment.