johm
johm copied to clipboard
JOhm is a Object-hash mapping library for Java for storing objects in Redis
jedis dependency version change from 1.5.1 to 2.4.2
Long reading has no NULL checking and many other Primitive readers are defaulting to eg. 0f for both float and Float.
Inside the "get" method: ``` value = JOhm. get(valueClazz, Integer.parseInt(valueKey)); ``` I don't know why use Integer.parseInt() but not Long.parseLong(). All the model's @id attribute is long.
Right now JOhm has only static methods, which does not allow multiple instances of it to be created. I maybe have a different JedisPool pointing to the master and a...
Using reflection to parse models and to check it at runtime is a clear bottleneck since this model (Class, Field ....) doesn't change at runtime. Moreover looping over all field...
redis\clients\johm\JOhm.java // always add to the all set, to support getAll nest.cat("all").sadd(String.valueOf(JOhmUtils.getId(model))); it cause : "SADD" "User:all" "2" "SADD" "User:all" "2" "SADD" "User:all" "2" "SADD" "User:all" "2" ... in which...
Getting such error `redis.clients.johm.JOhmException: java.lang.IllegalArgumentException: Can not set java.lang.Long field User.id to java.lang.Integer`. Did everything as it was described in example. Might that be a **bug** in 0.5.0 version? ```...
If you upgrade to use newest Jedis jar, you get lots of "redis.clients.johm.JOhm$1.del([Ljava/lang/String;)Ljava/lang/String;" errors. This happens during a save operation.
should be able to store Date fields, probably in redis it could be a timestamp