We use JSON serialization with Jackson to expose internal state of the system for debugging properties.
By default jackson does not serialize transient fields - but
My solution with Jackson 2.4.3:
private static final ObjectMapper mapper = new ObjectMapper(){{ Hibernate4Module module = new Hibernate4Module(); module.disable(Hibernate4Module.Feature.USE_TRANSIENT_ANNOTATION); registerModule(module); }};