{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5473","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5473/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5473/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5473/events","html_url":"https://github.com/orientechnologies/orientdb/issues/5473","id":122355165,"number":5473,"title":"EmbeddedMap is broken","user":{"login":"maseev","id":3434800,"avatar_url":"https://avatars.githubusercontent.com/u/3434800?v=3","gravatar_id":"","url":"https://api.github.com/users/maseev","html_url":"https://github.com/maseev","followers_url":"https://api.github.com/users/maseev/followers","following_url":"https://api.github.com/users/maseev/following{/other_user}","gists_url":"https://api.github.com/users/maseev/gists{/gist_id}","starred_url":"https://api.github.com/users/maseev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maseev/subscriptions","organizations_url":"https://api.github.com/users/maseev/orgs","repos_url":"https://api.github.com/users/maseev/repos","events_url":"https://api.github.com/users/maseev/events{/privacy}","received_events_url":"https://api.github.com/users/maseev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"tglman","id":424369,"avatar_url":"https://avatars.githubusercontent.com/u/424369?v=3","gravatar_id":"","url":"https://api.github.com/users/tglman","html_url":"https://github.com/tglman","followers_url":"https://api.github.com/users/tglman/followers","following_url":"https://api.github.com/users/tglman/following{/other_user}","gists_url":"https://api.github.com/users/tglman/gists{/gist_id}","starred_url":"https://api.github.com/users/tglman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tglman/subscriptions","organizations_url":"https://api.github.com/users/tglman/orgs","repos_url":"https://api.github.com/users/tglman/repos","events_url":"https://api.github.com/users/tglman/events{/privacy}","received_events_url":"https://api.github.com/users/tglman/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-12-15T20:06:44Z","updated_at":"2015-12-16T16:56:17Z","closed_at":null,"body":"I was trying to save and then query an entity which contains an embedded map (```Map<String, Car>``` to be precise). Here's a model that represents the database structure - https://github.com/maseev/orient/tree/master/src/main/java/orientdb/model. And here's the test where I'm trying to query an entity that was previously saved to the database - https://github.com/maseev/orient/blob/master/src/test/java/orientdb/OrientDbTest.java#L46.\r\n\r\nThe problem I faced to is instead of the entity that I save to the database I get the entity with an embedded map, where all values of the HashMap are equal to the first Car object that I put to the map. So, placeToCar map contains:\r\n```\r\n \"USA\" -> Car(\"Cadillac Escalade\", 1990)\r\n \"Japan\" -> Car(\"Cadillac Escalade\", 1990)\r\n \"UK\" -> Car(\"Cadillac Escalade\", 1990)\r\n```\r\ninstead of:\r\n```\r\n \"USA\" -> Car(\"Cadillac Escalade\", 1990)\r\n \"Japan\" -> Car(\"Nissan Skyline\", 2001)\r\n \"UK\" -> Car(\"Jaguar XR\", 2007)\r\n```\r\nYou can run ``mvn test`` to run the test. I clearly remember that way back when I was using OrientDb (it was 1.7 version) this functionality worked perfectly."},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/165173856","html_url":"https://github.com/orientechnologies/orientdb/issues/5473#issuecomment-165173856","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5473","id":165173856,"user":{"login":"maseev","id":3434800,"avatar_url":"https://avatars.githubusercontent.com/u/3434800?v=3","gravatar_id":"","url":"https://api.github.com/users/maseev","html_url":"https://github.com/maseev","followers_url":"https://api.github.com/users/maseev/followers","following_url":"https://api.github.com/users/maseev/following{/other_user}","gists_url":"https://api.github.com/users/maseev/gists{/gist_id}","starred_url":"https://api.github.com/users/maseev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maseev/subscriptions","organizations_url":"https://api.github.com/users/maseev/orgs","repos_url":"https://api.github.com/users/maseev/repos","events_url":"https://api.github.com/users/maseev/events{/privacy}","received_events_url":"https://api.github.com/users/maseev/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T16:56:17Z","updated_at":"2015-12-16T16:56:17Z","body":"By the way, it would be great to have some sort of integration tests which would cover this use case in order to avoid regression in subsequent releases."}}