Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Support for JDK 1.8 #63

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
ignore properties on references
  • Loading branch information
agrison committed Sep 19, 2014
commit 485659a06c9eeb97b4ba8d691a442d16debcbeb2
6 changes: 3 additions & 3 deletions src/main/java/redis/clients/johm/JOhm.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static <T> T get(Class<?> clazz, long id, String... ignoring) {
if (ignoredProperties.contains(field.getName()))
continue;

fillField(hashedObject, newInstance, field);
fillField(hashedObject, newInstance, field, ignoring);
fillArrayField(nest, newInstance, field);
}

Expand Down Expand Up @@ -346,7 +346,7 @@ public static void setPool(final JedisPool jedisPool) {
}

private static void fillField(final Map<String, String> hashedObject,
final Object newInstance, final Field field)
final Object newInstance, final Field field, String... ignoring)
throws IllegalAccessException {
JOhmUtils.Validator.checkAttributeReferenceIndexRules(field);
if (field.isAnnotationPresent(Attribute.class)) {
Expand All @@ -360,7 +360,7 @@ private static void fillField(final Map<String, String> hashedObject,
.getReferenceKeyName(field));
if (serializedReferenceId != null) {
Long referenceId = Long.valueOf(serializedReferenceId);
field.set(newInstance, get(field.getType(), referenceId));
field.set(newInstance, get(field.getType(), referenceId, ignoring));
}
}
}
Expand Down