{"action":"created","issue":{"url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/842","repository_url":"https://api.github.com/repos/impetus-opensource/Kundera","labels_url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/842/labels{/name}","comments_url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/842/comments","events_url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/842/events","html_url":"https://github.com/impetus-opensource/Kundera/issues/842","id":136090248,"number":842,"title":"@ElementCollection for Map in Hbase","user":{"login":"zenzei","id":595403,"avatar_url":"https://avatars.githubusercontent.com/u/595403?v=3","gravatar_id":"","url":"https://api.github.com/users/zenzei","html_url":"https://github.com/zenzei","followers_url":"https://api.github.com/users/zenzei/followers","following_url":"https://api.github.com/users/zenzei/following{/other_user}","gists_url":"https://api.github.com/users/zenzei/gists{/gist_id}","starred_url":"https://api.github.com/users/zenzei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenzei/subscriptions","organizations_url":"https://api.github.com/users/zenzei/orgs","repos_url":"https://api.github.com/users/zenzei/repos","events_url":"https://api.github.com/users/zenzei/events{/privacy}","received_events_url":"https://api.github.com/users/zenzei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-24T15:15:13Z","updated_at":"2016-02-24T16:31:01Z","closed_at":null,"body":"Does ElementCollection for a map work with Hbase? \r\n\r\nAs I was having the issue explain in #838, I decide to use some kind of map for the attributes i need to store (instead of inheritance and discriminator column/value). Basically i update my code to this\r\n\r\n```java\r\n@Entity\r\npublic class Table {\r\n    @Id\r\n    private String id;\r\n    private String name ; \r\n    @ElementCollection\r\n    private List<Field> columns ;\r\n    ...\r\n}\r\n\r\n@Embeddable\r\npublic class Field {\r\n    private String name ; \r\n\r\n    @ElementCollection\r\n    private Map<String, Object> fieldTypeAttributes;\r\n    ...\r\n}\r\n```\r\n\r\nThe map has the attribute name as the map key and the attribute value (objects that are basic types) as the map values But it seems that the Map annoted with ElementCollection is not being saved.\r\n\r\nCan anyone confirm if doesn't work or I'm missing something? I'm using kundera-hbase-v2 (version 3.3).\r\n\r\nThanks!\r\n"},"comment":{"url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/comments/188339340","html_url":"https://github.com/impetus-opensource/Kundera/issues/842#issuecomment-188339340","issue_url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/842","id":188339340,"user":{"login":"karthikprasad13","id":8909916,"avatar_url":"https://avatars.githubusercontent.com/u/8909916?v=3","gravatar_id":"","url":"https://api.github.com/users/karthikprasad13","html_url":"https://github.com/karthikprasad13","followers_url":"https://api.github.com/users/karthikprasad13/followers","following_url":"https://api.github.com/users/karthikprasad13/following{/other_user}","gists_url":"https://api.github.com/users/karthikprasad13/gists{/gist_id}","starred_url":"https://api.github.com/users/karthikprasad13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karthikprasad13/subscriptions","organizations_url":"https://api.github.com/users/karthikprasad13/orgs","repos_url":"https://api.github.com/users/karthikprasad13/repos","events_url":"https://api.github.com/users/karthikprasad13/events{/privacy}","received_events_url":"https://api.github.com/users/karthikprasad13/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T16:31:01Z","updated_at":"2016-02-24T16:31:01Z","body":"@zenzei \r\n\r\nYou don't need to annotate simple Map (Map that does not have an Embeddable as a Key or Value) with `@ElementCollection`. Hbase does not support `Map` inside `ElementCollection` as of now.\r\n\r\n-Karthik"}}