Hallo.

Is there any "best-practise" on how to model resources, which consist of other resources as well? I read the book of Richardson&Ruby recently and wondered how I could map their idea of "fully connected resources" to a hibernate-domain-model.

Hibernate has it's annotations, so you can model the relations between objects. But when it comes to REST, you don't need a full objectgraph. How to solve this problem? By just getting an identifier of the entities the object contains and qrapping a String around that?

Thanks,
Sven Win

Reply via email to