tag:blogger.com,1999:blog-2648073517459434852.post1309057260235926396..comments2024-01-10T08:12:30.187+00:00Comments on G's Blog: java.lang.reflect.Proxy client based on Jersey with a bit of HATEOAS built inGerard Davisonhttp://www.blogger.com/profile/16521924431312439170noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-2648073517459434852.post-88348920422211528762009-09-28T16:29:22.053+01:002009-09-28T16:29:22.053+01:00Yes, interesting. I do remember reading this when ...Yes, interesting. I do remember reading this when you first posted.<br /><br />I do wonder though whether we could be both wrong in our original plans as we should be focusing on id/idrefs pairs. <br /><br />Fundamentally HATEOAS, and REST to a lesser extent, models the entire system as one large interconnected information model which breaks between documents at the convenience of the developers.<br /><br />Take for example trying to map <a href="/2009/02/exposing-tables-mapped-to-entity-beans.html" rel="nofollow">Emp/Dept to a simple web service</a>.<br /><br />In this case use Id/IdRef to determine the intersection between different documents or parts there of. If the adapter on Id already has a suitable adapter to generate a self URI then IdRef should get that value automatically.<br /><br />Not sure this is entirely fully thought out; but it feels like the right direction. <br /><br />Any thoughts?<br /><br />GerardGerard Davisonhttps://www.blogger.com/profile/16521924431312439170noreply@blogger.comtag:blogger.com,1999:blog-2648073517459434852.post-49388758978769770952009-09-22T17:37:10.531+01:002009-09-22T17:37:10.531+01:00I'm definitely interseted in seeing where this...I'm definitely interseted in seeing where this goes. I tried to put something similar into RESTEasy. Take a look towards the end of http://www.jroller.com/Solomon/entry/declarative_hyperlinking_in_resteasy <br /><br />I didn't use URI at all. I used an annotation on my domain/dto object that describes how to convert the object to and from a URL (@URITemplate), and added a @XmlJavaTypeAdapter on a classStaff Software Engineer at Googlehttps://www.blogger.com/profile/09846073811897244636noreply@blogger.com