{"action":"closed","issue":{"url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/863","repository_url":"https://api.github.com/repos/impetus-opensource/Kundera","labels_url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/863/labels{/name}","comments_url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/863/comments","events_url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/863/events","html_url":"https://github.com/impetus-opensource/Kundera/issues/863","id":155285608,"number":863,"title":"Unable to nest @Embedded Objects on MongoDB","user":{"login":"monesidn","id":3395970,"avatar_url":"https://avatars.githubusercontent.com/u/3395970?v=3","gravatar_id":"","url":"https://api.github.com/users/monesidn","html_url":"https://github.com/monesidn","followers_url":"https://api.github.com/users/monesidn/followers","following_url":"https://api.github.com/users/monesidn/following{/other_user}","gists_url":"https://api.github.com/users/monesidn/gists{/gist_id}","starred_url":"https://api.github.com/users/monesidn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monesidn/subscriptions","organizations_url":"https://api.github.com/users/monesidn/orgs","repos_url":"https://api.github.com/users/monesidn/repos","events_url":"https://api.github.com/users/monesidn/events{/privacy}","received_events_url":"https://api.github.com/users/monesidn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/impetus-opensource/Kundera/labels/Fixed","name":"Fixed","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/impetus-opensource/Kundera/milestones/32","html_url":"https://github.com/impetus-opensource/Kundera/milestones/3.5","labels_url":"https://api.github.com/repos/impetus-opensource/Kundera/milestones/32/labels","id":1773257,"number":32,"title":"3.5","description":"","creator":{"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},"open_issues":7,"closed_issues":2,"state":"open","created_at":"2016-05-18T07:07:00Z","updated_at":"2016-06-21T10:01:26Z","due_on":"2016-06-15T18:30:00Z","closed_at":null},"comments":4,"created_at":"2016-05-17T15:13:07Z","updated_at":"2016-06-21T10:01:26Z","closed_at":"2016-06-21T10:01:26Z","body":"When working with MongoDB we can not store a nested `@Embedded` object inside another `@Embedded` one.\r\nFor example, given:\r\n```java\r\n@Entity\r\n@SuppressWarnings(\"serial\")\r\npublic class RootClass1 implements Serializable{\r\n\t\r\n\t@Id\r\n\t@GeneratedValue\r\n\tprivate ObjectId objectId;\r\n\r\n\t@Embedded\r\n\tprivate ParentClass1 parent;\r\n```\r\n\r\n```java\r\n@Embeddable\r\n@SuppressWarnings(\"serial\")\r\npublic class ParentClass1 implements Serializable {\r\n\t\r\n\tprivate String payload;\r\n\t\r\n\t@Embedded\r\n\tprivate ChildClass1 child;\r\n```\r\n\r\n```java\r\n@Embeddable\r\n@SuppressWarnings(\"serial\")\r\npublic class ChildClass1 implements Serializable{\r\n\r\n\tprivate String payload;\r\n```\r\n\r\nKundera mongodb stores `RootClass1` and `ParentClass1` ignoring the `@Embedded ChildClass1` field.\r\nAn example `ParentClass1` document:\r\n`{ \"_id\" : { \"$oid\" : \"573b2dfe971871e5231fd0cc\"} , \"parent\" : { \"payload\" : \"Parent\"}}`\r\n\r\n\r\nI wrote two test cases that can be found at: \r\nhttps://github.com/monesidn/kundera-mongodb-test-embeddable\r\n"}}
{"actor":{"display_login":"devender-yadav"}}