Jsondb / jsondb-core

JsonDB a pure java database that stores its data as Json Files
http://www.jsondb.io
MIT License
212 stars 45 forks source link

getCollection always return the last item #60

Closed byronv5 closed 8 months ago

byronv5 commented 9 months ago

@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

byronv5 commented 8 months ago

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