Jsondb / jsondb-core

JsonDB a pure java database that stores its data as Json Files

Home Page:http://www.jsondb.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getCollection always return the last item

byronv5 opened this issue · comments

@Data class BaseEntity { private String a; private String b; } @Data class AClass extends BaseEntity { @Id private Integer id; private String d; }
cause the property id is not in the BaseEntity,the source code only handle the most super clazz

The ‘id’ attribute must be placed in the base class; otherwise, it cannot be retrieved