{"action":"created","issue":{"url":"https://api.github.com/repos/FasterXML/jackson-datatype-hibernate/issues/50","labels_url":"https://api.github.com/repos/FasterXML/jackson-datatype-hibernate/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/FasterXML/jackson-datatype-hibernate/issues/50/comments","events_url":"https://api.github.com/repos/FasterXML/jackson-datatype-hibernate/issues/50/events","html_url":"https://github.com/FasterXML/jackson-datatype-hibernate/issues/50","id":26665816,"number":50,"title":"Feature.SERIALIZE_IDENTIFIER_FOR_LAZY_NOT_LOADED_OBJECTS customise generated name","user":{"login":"jackmatt2","id":6348088,"avatar_url":"https://avatars.githubusercontent.com/u/6348088?v=3","gravatar_id":"","url":"https://api.github.com/users/jackmatt2","html_url":"https://github.com/jackmatt2","followers_url":"https://api.github.com/users/jackmatt2/followers","following_url":"https://api.github.com/users/jackmatt2/following{/other_user}","gists_url":"https://api.github.com/users/jackmatt2/gists{/gist_id}","starred_url":"https://api.github.com/users/jackmatt2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackmatt2/subscriptions","organizations_url":"https://api.github.com/users/jackmatt2/orgs","repos_url":"https://api.github.com/users/jackmatt2/repos","events_url":"https://api.github.com/users/jackmatt2/events{/privacy}","received_events_url":"https://api.github.com/users/jackmatt2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-01-31T09:41:46Z","updated_at":"2015-09-18T19:23:17Z","closed_at":null,"body":"It would be good if Feature.SERIALIZE_IDENTIFIER_FOR_LAZY_NOT_LOADED_OBJECTS would let you customise the generated name, or at least use the name from the java bean.\r\n\r\nCurrently it is serializing using full package and class name:\r\n\r\n\"client\":{\"com.test.domain.Client\":1}\r\n\r\nI want it to use the id instead (which is the name of the attribute in the hibernate entity):\r\n\r\n\"client\":{\"id\":1}\r\n\r\nMaybe there is a way around this but I can't find any."},"comment":{"url":"https://api.github.com/repos/FasterXML/jackson-datatype-hibernate/issues/comments/141544051","html_url":"https://github.com/FasterXML/jackson-datatype-hibernate/issues/50#issuecomment-141544051","issue_url":"https://api.github.com/repos/FasterXML/jackson-datatype-hibernate/issues/50","id":141544051,"user":{"login":"bedag-moo","id":13641660,"avatar_url":"https://avatars.githubusercontent.com/u/13641660?v=3","gravatar_id":"","url":"https://api.github.com/users/bedag-moo","html_url":"https://github.com/bedag-moo","followers_url":"https://api.github.com/users/bedag-moo/followers","following_url":"https://api.github.com/users/bedag-moo/following{/other_user}","gists_url":"https://api.github.com/users/bedag-moo/gists{/gist_id}","starred_url":"https://api.github.com/users/bedag-moo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bedag-moo/subscriptions","organizations_url":"https://api.github.com/users/bedag-moo/orgs","repos_url":"https://api.github.com/users/bedag-moo/repos","events_url":"https://api.github.com/users/bedag-moo/events{/privacy}","received_events_url":"https://api.github.com/users/bedag-moo/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T19:23:17Z","updated_at":"2015-09-18T19:23:17Z","body":"It is worth noting that the HibernateSerializer uses the actual name of the id property if the session is still open, or the hibernate mapping is passed to the Hibernate4Module constructor.\r\n\r\nStill, it would be nice if the Serializer could infer this information automatically in all cases."}}