{"action":"created","issue":{"url":"https://api.github.com/repos/querydsl/querydsl/issues/1559","labels_url":"https://api.github.com/repos/querydsl/querydsl/issues/1559/labels{/name}","comments_url":"https://api.github.com/repos/querydsl/querydsl/issues/1559/comments","events_url":"https://api.github.com/repos/querydsl/querydsl/issues/1559/events","html_url":"https://github.com/querydsl/querydsl/issues/1559","id":106796988,"number":1559,"title":"SimplePath for Comparable","user":{"login":"gsmet","id":1279749,"avatar_url":"https://avatars.githubusercontent.com/u/1279749?v=3","gravatar_id":"","url":"https://api.github.com/users/gsmet","html_url":"https://github.com/gsmet","followers_url":"https://api.github.com/users/gsmet/followers","following_url":"https://api.github.com/users/gsmet/following{/other_user}","gists_url":"https://api.github.com/users/gsmet/gists{/gist_id}","starred_url":"https://api.github.com/users/gsmet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsmet/subscriptions","organizations_url":"https://api.github.com/users/gsmet/orgs","repos_url":"https://api.github.com/users/gsmet/repos","events_url":"https://api.github.com/users/gsmet/events{/privacy}","received_events_url":"https://api.github.com/users/gsmet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-16T15:23:31Z","updated_at":"2015-09-16T19:54:59Z","closed_at":null,"body":"Hi!\r\n\r\nAfter upgrading to Java 8 and the latest 3.6.x of QueryDSL, I have a problem with the generated code. Instead of using a ComparablePath for a Comparable, it uses a SimplePath:\r\n```java\r\npublic final SimplePath<Comparable<?>> id = createSimple(\"id\", Comparable.class);\r\n```\r\n\r\nThe origin class is of the form:\r\n```java\r\npublic abstract class GenericEntity<K extends Comparable<K> & Serializable, E extends GenericEntity<K, ?>> implements Serializable, Comparable<E> {\r\n\tpublic abstract K getId();\r\n\r\n\tpublic abstract void setId(K id);\r\n}\r\n```\r\n\r\nFWIW, I also have the issue with the 4.x. branch.\r\n\r\n-- \r\nGuillaume"},"comment":{"url":"https://api.github.com/repos/querydsl/querydsl/issues/comments/140868666","html_url":"https://github.com/querydsl/querydsl/issues/1559#issuecomment-140868666","issue_url":"https://api.github.com/repos/querydsl/querydsl/issues/1559","id":140868666,"user":{"login":"gsmet","id":1279749,"avatar_url":"https://avatars.githubusercontent.com/u/1279749?v=3","gravatar_id":"","url":"https://api.github.com/users/gsmet","html_url":"https://github.com/gsmet","followers_url":"https://api.github.com/users/gsmet/followers","following_url":"https://api.github.com/users/gsmet/following{/other_user}","gists_url":"https://api.github.com/users/gsmet/gists{/gist_id}","starred_url":"https://api.github.com/users/gsmet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsmet/subscriptions","organizations_url":"https://api.github.com/users/gsmet/orgs","repos_url":"https://api.github.com/users/gsmet/repos","events_url":"https://api.github.com/users/gsmet/events{/privacy}","received_events_url":"https://api.github.com/users/gsmet/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T19:54:59Z","updated_at":"2015-09-16T19:54:59Z","body":"We use APT. The first thing which was weird is that I had to put Comparable first in the generic to make QueryDSL generate a Comparable binding. Before Java 8, Comparable was defined last and it worked like a charm."}}