Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1688,6 +1688,19 @@ else if (typeHierarchy.size() <= 1) {

CompositeType<OUT> pojoType = new PojoTypeInfo<OUT>(clazz, pojoFields);

//POJO should override hashcode and equals method
//in the situation where it used as key for operations.
try {
clazz.getDeclaredMethod("hashCode");
} catch (NoSuchMethodException e) {
LOG.info(clazz + " should override hashCode method.");
}

try {
clazz.getDeclaredMethod("equals");
} catch (NoSuchMethodException e) {
LOG.info(clazz + " should override equals method.");
}
//
// Validate the correctness of the pojo.
// returning "null" will result create a generic type information.
Expand Down