{"action":"created","issue":{"url":"https://api.github.com/repos/doanduyhai/Achilles/issues/247","repository_url":"https://api.github.com/repos/doanduyhai/Achilles","labels_url":"https://api.github.com/repos/doanduyhai/Achilles/issues/247/labels{/name}","comments_url":"https://api.github.com/repos/doanduyhai/Achilles/issues/247/comments","events_url":"https://api.github.com/repos/doanduyhai/Achilles/issues/247/events","html_url":"https://github.com/doanduyhai/Achilles/issues/247","id":141292513,"number":247,"title":"Annotation @CompoundPrimaryKey has disappeared since Achilles 4.x","user":{"login":"amorillotraxens","id":13168012,"avatar_url":"https://avatars.githubusercontent.com/u/13168012?v=3","gravatar_id":"","url":"https://api.github.com/users/amorillotraxens","html_url":"https://github.com/amorillotraxens","followers_url":"https://api.github.com/users/amorillotraxens/followers","following_url":"https://api.github.com/users/amorillotraxens/following{/other_user}","gists_url":"https://api.github.com/users/amorillotraxens/gists{/gist_id}","starred_url":"https://api.github.com/users/amorillotraxens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amorillotraxens/subscriptions","organizations_url":"https://api.github.com/users/amorillotraxens/orgs","repos_url":"https://api.github.com/users/amorillotraxens/repos","events_url":"https://api.github.com/users/amorillotraxens/events{/privacy}","received_events_url":"https://api.github.com/users/amorillotraxens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-16T14:32:58Z","updated_at":"2016-03-16T19:19:08Z","closed_at":null,"body":"We used a lot this annotation with Achilles 3.x. This might stop us to migrate to 4.x. Is there any equivalent in Achilles 4.x ?"},"comment":{"url":"https://api.github.com/repos/doanduyhai/Achilles/issues/comments/197498200","html_url":"https://github.com/doanduyhai/Achilles/issues/247#issuecomment-197498200","issue_url":"https://api.github.com/repos/doanduyhai/Achilles/issues/247","id":197498200,"user":{"login":"doanduyhai","id":1532977,"avatar_url":"https://avatars.githubusercontent.com/u/1532977?v=3","gravatar_id":"","url":"https://api.github.com/users/doanduyhai","html_url":"https://github.com/doanduyhai","followers_url":"https://api.github.com/users/doanduyhai/followers","following_url":"https://api.github.com/users/doanduyhai/following{/other_user}","gists_url":"https://api.github.com/users/doanduyhai/gists{/gist_id}","starred_url":"https://api.github.com/users/doanduyhai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doanduyhai/subscriptions","organizations_url":"https://api.github.com/users/doanduyhai/orgs","repos_url":"https://api.github.com/users/doanduyhai/repos","events_url":"https://api.github.com/users/doanduyhai/events{/privacy}","received_events_url":"https://api.github.com/users/doanduyhai/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T19:19:08Z","updated_at":"2016-03-16T19:19:08Z","body":"You can use inheritance with `@PartitionKey` and `@ClusteringColumn` to achieve the same effect to\r\n\r\n\r\n```java\r\n\r\npublic class CompoundPK {\r\n\r\n   @PartitionKey\r\n   protected Long partition;\r\n  \r\n   @ClusteringColumn\r\n   protected UUID clustering;\r\n}\r\n\r\n@Table\r\npublic ChildA extends CompoundPk {\r\n     @Column\r\n     private String value\r\n}\r\n\r\n@Table\r\npublic ChildB extends CompoundPk {\r\n    @Column\r\n    private Date date;\r\n}\r\n```"}}