nitrite-java: Getting error when using inheritance

I am trying to use inheritance in my objects as shown bellow. when i try and create an object i now get the following error what should i do ?

org.dizitart.no2.exceptions.ValidationException: NO2.1028: no such value 'uid' for type com.example.entities.ChildClass

@Indices(
        @Index(value = "uid", type = IndexType.Unique)
)
public class ParentClass {
    @Id
    protected String uid;
    protected boolean deleted;
}

@InheritIndices
public class ChildClass extends ParentClass {
    private String name;
    private String type;
}

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (9 by maintainers)

Most upvoted comments

It worked perfectly, thx