{"action":"opened","issue":{"url":"https://api.github.com/repos/dropwizard/dropwizard/issues/932","labels_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/932/labels{/name}","comments_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/932/comments","events_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/932/events","html_url":"https://github.com/dropwizard/dropwizard/issues/932","id":60534947,"number":932,"title":"Jackson does not serialize @Transient fields in Hibernate","user":{"login":"dblezek","id":76340,"avatar_url":"https://avatars.githubusercontent.com/u/76340?v=3","gravatar_id":"","url":"https://api.github.com/users/dblezek","html_url":"https://github.com/dblezek","followers_url":"https://api.github.com/users/dblezek/followers","following_url":"https://api.github.com/users/dblezek/following{/other_user}","gists_url":"https://api.github.com/users/dblezek/gists{/gist_id}","starred_url":"https://api.github.com/users/dblezek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dblezek/subscriptions","organizations_url":"https://api.github.com/users/dblezek/orgs","repos_url":"https://api.github.com/users/dblezek/repos","events_url":"https://api.github.com/users/dblezek/events{/privacy}","received_events_url":"https://api.github.com/users/dblezek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-10T17:14:29Z","updated_at":"2015-03-10T17:14:29Z","closed_at":null,"body":"According to an [issue in Jackson](https://github.com/FasterXML/jackson-databind/issues/573), `@Transient` annotate fields/getters are not serialized to JSON in Jackson > 2.0.  The solution is simple, disable the feature in the Jackson Hibernate4Module, i.e. \r\n\r\n```java\r\nmodule.disable(Hibernate4Module.Feature.USE_TRANSIENT_ANNOTATION);\r\n```\r\n\r\n However, this method is marked final in `HibernateBundle`, thus there is no way to disable this feature when using the Bundle:\r\n\r\n```java\r\n    @Override\r\n    public final void initialize(Bootstrap<?> bootstrap) {\r\n        bootstrap.getObjectMapper().registerModule(new Hibernate4Module());\r\n    }\r\n```\r\n\r\nThis creates subtle problems when generating JSON from Hibernate objects..."}}