Starting from hibernate, I seem to have engineered myself into a small
corner.

class Parent {
  int id; // public property fcns available
};

class Child {
  int id;
 Parent parent;
};

What I want in the JSON is the parent's ID, not an entire dump of the
parent. Using jackson, there might be an annotation to fix this, but since
the java is generated by hibernate, and the doc on this area in hibernate is
awful, I don't much want to go there. There's nothing generic to JAX-RS for
dealing with this, is there?

Reply via email to