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

jsonDBTemplate.findAll(Instance.class, comparator) #46

Open EclipseKnight opened 3 years ago

EclipseKnight commented 3 years ago

This method is documented on the site but is not usable. image of IDE Am I missing something?

BlueDrink9 commented 2 years ago

This is because you are using the released version, which doesn't have the features documented on the project homepage. @FarooqKhan any chances of getting a new tag/release so that tools like maven can access the new jsondb features?

FarooqKhan commented 2 years ago

This method has always been part of the released jar. I downloaded the jar from mvnrepository and decompiled and checked. It shows up in the jar. I have had this coded for over 5 years now. There has to be some other problem.

BlueDrink9 commented 2 years ago

This functionality didn't work for me either, until I switched from the tagged release to the latest git commit.

I feel wrong telling you that you are incorrect about your own code, but if you look at the class as of the release commit you'll see that actually, those method overloads don't exist in the class as documented. Assuming the release jar comes from that commit (and it would be bafflingly poor practise if it did not), then the release jar does not have this feature.

BlueDrink9 commented 2 years ago

There have been 100+ commits since the last git tag was released, and that seems to be what gets picked up by Maven