{"action":"created","issue":{"url":"https://api.github.com/repos/eugene-kamenev/orientdb-groovy/issues/22","labels_url":"https://api.github.com/repos/eugene-kamenev/orientdb-groovy/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/eugene-kamenev/orientdb-groovy/issues/22/comments","events_url":"https://api.github.com/repos/eugene-kamenev/orientdb-groovy/issues/22/events","html_url":"https://github.com/eugene-kamenev/orientdb-groovy/issues/22","id":123351100,"number":22,"title":"embedded object in vertex","user":{"login":"dmunguia","id":626192,"avatar_url":"https://avatars.githubusercontent.com/u/626192?v=3","gravatar_id":"","url":"https://api.github.com/users/dmunguia","html_url":"https://github.com/dmunguia","followers_url":"https://api.github.com/users/dmunguia/followers","following_url":"https://api.github.com/users/dmunguia/following{/other_user}","gists_url":"https://api.github.com/users/dmunguia/gists{/gist_id}","starred_url":"https://api.github.com/users/dmunguia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmunguia/subscriptions","organizations_url":"https://api.github.com/users/dmunguia/orgs","repos_url":"https://api.github.com/users/dmunguia/repos","events_url":"https://api.github.com/users/dmunguia/events{/privacy}","received_events_url":"https://api.github.com/users/dmunguia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-21T20:26:31Z","updated_at":"2015-12-22T17:55:51Z","closed_at":null,"body":"Hey, love the library! thanks for the great work. \r\nI have a question, what's the best way of embedding an object into a vertex. I'm trying the following:\r\n\r\n```groovy\r\n@OrientDocument\r\n@CompileStatic\r\n@EqualsAndHashCode\r\nclass Point {\r\n    double latitude\r\n    double longitude\r\n}\r\n\r\n@Vertex\r\n@CompileStatic\r\nclass MyVertex {\r\n    String name\r\n    Point location\r\n\r\n    static mapping = {\r\n        location(type: OType.EMBEDDED)\r\n    }\r\n}\r\n```\r\n\r\nBut I'm getting this exception when trying to create assign the `location` property with a new instance of `Point` :\r\n\r\n```groovy\r\nMyVertex v = new MyVertex(\r\n    name: theName,\r\n    location: new Point(latitude: theLatitude, longitude: theLongitude)\r\n)\r\n```\r\n\r\n```\r\ngroovy.lang.MissingPropertyException: No such property: vertex for class: Point\r\n\tat org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:53)\r\n\tat org.codehaus.groovy.runtime.callsite.GetEffectivePogoPropertySite.getProperty(GetEffectivePogoPropertySite.java:87)\r\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:296)\r\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetPropertySafe(AbstractCallSite.java:410)\r\n\tat com.github.eugene.kamenev.orient.graph.OrientGraphHelper.getVertexFromEntity(OrientGraphHelper.groovy:58)\r\n```"},"comment":{"url":"https://api.github.com/repos/eugene-kamenev/orientdb-groovy/issues/comments/166690377","html_url":"https://github.com/eugene-kamenev/orientdb-groovy/issues/22#issuecomment-166690377","issue_url":"https://api.github.com/repos/eugene-kamenev/orientdb-groovy/issues/22","id":166690377,"user":{"login":"eugene-kamenev","id":2604095,"avatar_url":"https://avatars.githubusercontent.com/u/2604095?v=3","gravatar_id":"","url":"https://api.github.com/users/eugene-kamenev","html_url":"https://github.com/eugene-kamenev","followers_url":"https://api.github.com/users/eugene-kamenev/followers","following_url":"https://api.github.com/users/eugene-kamenev/following{/other_user}","gists_url":"https://api.github.com/users/eugene-kamenev/gists{/gist_id}","starred_url":"https://api.github.com/users/eugene-kamenev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugene-kamenev/subscriptions","organizations_url":"https://api.github.com/users/eugene-kamenev/orgs","repos_url":"https://api.github.com/users/eugene-kamenev/repos","events_url":"https://api.github.com/users/eugene-kamenev/events{/privacy}","received_events_url":"https://api.github.com/users/eugene-kamenev/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T17:55:51Z","updated_at":"2015-12-22T17:55:51Z","body":"@dmunguia Can you make a pull request with a test that will fail, add it for vertex transform test, and we will pass this test when it will be fixed. Thanks."}}