{"action":"created","issue":{"url":"https://api.github.com/repos/SQiShER/java-object-diff/issues/137","labels_url":"https://api.github.com/repos/SQiShER/java-object-diff/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/SQiShER/java-object-diff/issues/137/comments","events_url":"https://api.github.com/repos/SQiShER/java-object-diff/issues/137/events","html_url":"https://github.com/SQiShER/java-object-diff/issues/137","id":90974968,"number":137,"title":"Couldn't find a differ for type: [Ljava.lang.annotation.Annotation","user":{"login":"jepsar","id":7500178,"avatar_url":"https://avatars.githubusercontent.com/u/7500178?v=3","gravatar_id":"","url":"https://api.github.com/users/jepsar","html_url":"https://github.com/jepsar","followers_url":"https://api.github.com/users/jepsar/followers","following_url":"https://api.github.com/users/jepsar/following{/other_user}","gists_url":"https://api.github.com/users/jepsar/gists{/gist_id}","starred_url":"https://api.github.com/users/jepsar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jepsar/subscriptions","organizations_url":"https://api.github.com/users/jepsar/orgs","repos_url":"https://api.github.com/users/jepsar/repos","events_url":"https://api.github.com/users/jepsar/events{/privacy}","received_events_url":"https://api.github.com/users/jepsar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-25T14:07:40Z","updated_at":"2015-09-09T14:12:35Z","closed_at":"2015-07-04T13:03:54Z","body":"at de.danielbechler.diff.differ.DifferProvider.retrieveDifferForType(DifferProvider.java:47)\r\n\r\nusing 0.92.1\r\n"},"comment":{"url":"https://api.github.com/repos/SQiShER/java-object-diff/issues/comments/138922336","html_url":"https://github.com/SQiShER/java-object-diff/issues/137#issuecomment-138922336","issue_url":"https://api.github.com/repos/SQiShER/java-object-diff/issues/137","id":138922336,"user":{"login":"celiovasconcelos","id":849402,"avatar_url":"https://avatars.githubusercontent.com/u/849402?v=3","gravatar_id":"","url":"https://api.github.com/users/celiovasconcelos","html_url":"https://github.com/celiovasconcelos","followers_url":"https://api.github.com/users/celiovasconcelos/followers","following_url":"https://api.github.com/users/celiovasconcelos/following{/other_user}","gists_url":"https://api.github.com/users/celiovasconcelos/gists{/gist_id}","starred_url":"https://api.github.com/users/celiovasconcelos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celiovasconcelos/subscriptions","organizations_url":"https://api.github.com/users/celiovasconcelos/orgs","repos_url":"https://api.github.com/users/celiovasconcelos/repos","events_url":"https://api.github.com/users/celiovasconcelos/events{/privacy}","received_events_url":"https://api.github.com/users/celiovasconcelos/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T14:12:35Z","updated_at":"2015-09-09T14:12:35Z","body":"\r\n@jepsar I did this. It's now working for JPA/Hibernate object tree\r\n\r\n```\r\n\t\tObjectDifferBuilder objectDifferBuilder = ObjectDifferBuilder.startBuilding();\r\n\t\tobjectDifferBuilder.differs().register(new DifferFactory() {\r\n\t\t\t@Override\r\n\t\t\tpublic Differ createDiffer(DifferDispatcher differDispatcher, NodeQueryService nodeQueryService) {\r\n\t\t\t\treturn new Differ() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic DiffNode compare(DiffNode parentNode, Instances instances) {\r\n\t\t\t\t\t\treturn new DiffNode(parentNode, instances.getSourceAccessor());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic boolean accepts(Class<?> type) {\r\n\t\t\t\t\t\treturn type.isArray() || type.getPackage().getName().contains(\"org.hibernate\");\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t});\r\n\t\tObjectDiffer objectDiffer = objectDifferBuilder.build();\r\n```"}}