<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Thinking inside a bigger box - Latest Comments in A Brief Adventure with Universal Repositories and REST Web Services</title><link>http://thinkinginsideabiggerbox.disqus.com/</link><description></description><language>en</language><lastBuildDate>Mon, 13 Aug 2007 15:33:27 -0000</lastBuildDate><item><title>Re: A Brief Adventure with Universal Repositories and REST Web Services</title><link>http://www.brodwall.com/johannes/blog/2007/03/03/a-brief-adventure-with-universal-repositories-and-rest-web-services/#comment-1797902</link><description>Hi, Mats&lt;br&gt;&lt;br&gt;I'm thinking about GET as analogous to lazy loading proxies with Hibernate (or other persistence framework). This means that a GET request could either return a link, or the embedded object. Using the same analogy, PUT and POST requests can be similar to cascading saves, I think. This means that the onus is on the client to ensure that the correct state is transferred.&lt;br&gt;&lt;br&gt;Does that make sense?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johannes Brodwall</dc:creator><pubDate>Mon, 13 Aug 2007 15:33:27 -0000</pubDate></item><item><title>Re: A Brief Adventure with Universal Repositories and REST Web Services</title><link>http://www.brodwall.com/johannes/blog/2007/03/03/a-brief-adventure-with-universal-repositories-and-rest-web-services/#comment-1797901</link><description>When GETing it's pretty clear that if an object contains a reference to another object, it is either included in the returned document, or it is referenced.&lt;br&gt;When POSTing or PUTting, however, the situation is more complex. I don't think it matters if you are creating or updating, what to do with direct attributes are clear, but not with referenced objects. A referenced object might exist only on the client side, or it might be in the repository, but with different attributes. Do  you have a clear vision of how to handle this?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mats</dc:creator><pubDate>Mon, 13 Aug 2007 09:33:22 -0000</pubDate></item><item><title>Re: A Brief Adventure with Universal Repositories and REST Web Services</title><link>http://www.brodwall.com/johannes/blog/2007/03/03/a-brief-adventure-with-universal-repositories-and-rest-web-services/#comment-1797903</link><description>Thanks for the good comments, Mats.&lt;br&gt;&lt;br&gt;I have indeed considered using the Map interface. My main issue is how to treat keys during inserts. The Map interface is not designed for key generation purposes. I've toyed with a few options, but found none that I like.&lt;br&gt;&lt;br&gt;Using URLs as keys is actually one of the neat things about REST. This will become more obvious if I get around to publishing work on more complex models.&lt;br&gt;&lt;br&gt;Regarding "get" versus "retrieve". I choose "retrieve" because of the CRUD patterns (but I cowardly left "insert" as "create" to avoid the overloaded meaning of "insert"). Also, I wanted to remove the association with getters. But "get" might be a better name after all.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johannes Brodwall</dc:creator><pubDate>Mon, 16 Jul 2007 20:08:23 -0000</pubDate></item><item><title>Re: A Brief Adventure with Universal Repositories and REST Web Services</title><link>http://www.brodwall.com/johannes/blog/2007/03/03/a-brief-adventure-with-universal-repositories-and-rest-web-services/#comment-1797900</link><description>No problem, I can manage. Just wanted to give feedback in case you weren't aware. And thanks for the Maven tip.&lt;br&gt;&lt;br&gt;Another thing is that the repository interface looks a lot like the Map interface. Make me wonder about the differences, such as method names (should "retrieve" be called "get"?), the type parameters (wouldn't it be nicer with a key type parameter?), would it be possible to go so far as to have Repository implement Map?&lt;br&gt;&lt;br&gt;Also I didn't quite like the "hack" with URLs being used interchangeably with Keys, or the "Long.valueOf(parts[1])" in RESTRepositoryServlet.getKey where Keys are suddenly assumed/restricted to be Longs.&lt;br&gt;&lt;br&gt;Not "complaining", just trying to provide some humble feedback, hoping it might be of some interest.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mats</dc:creator><pubDate>Wed, 11 Jul 2007 06:27:52 -0000</pubDate></item><item><title>Re: A Brief Adventure with Universal Repositories and REST Web Services</title><link>http://www.brodwall.com/johannes/blog/2007/03/03/a-brief-adventure-with-universal-repositories-and-rest-web-services/#comment-1797905</link><description>Hi, Mats&lt;br&gt;&lt;br&gt;Yeah, as it turns out, Spring is a dependency hog, and the other dependencies stack up.&lt;br&gt;&lt;br&gt;If you're not doing it already, you really should use Maven to build this (and other) project. It really helps with dependency mess.&lt;br&gt;&lt;br&gt;Sorry about the UrlMemoryRepository. I am reworking the code, and it is in a bit of an intermediate state right now. If this is a blocker for you, I can prioritize fixing it. Let me know.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johannes Brodwall</dc:creator><pubDate>Sun, 08 Jul 2007 13:26:56 -0000</pubDate></item><item><title>Re: A Brief Adventure with Universal Repositories and REST Web Services</title><link>http://www.brodwall.com/johannes/blog/2007/03/03/a-brief-adventure-with-universal-repositories-and-rest-web-services/#comment-1797904</link><description>Really elegant construction this.&lt;br&gt;When trying to run it, I had to add 10 external jars. Makes me wonder&lt;br&gt;if they're all really needed. Second, in the "trade" package there are&lt;br&gt;unresolved references to the ...rest.UrlMemoryRepository class.&lt;br&gt;Still, really cool stuff.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mats</dc:creator><pubDate>Sun, 08 Jul 2007 11:27:00 -0000</pubDate></item><item><title>Re: A Brief Adventure with Universal Repositories and REST Web Services</title><link>http://www.brodwall.com/johannes/blog/2007/03/03/a-brief-adventure-with-universal-repositories-and-rest-web-services/#comment-1797899</link><description>Hei Johannes,&lt;br&gt;&lt;br&gt;Sjekk ut WP-Syntax pluggen til WordPress. Vil gi deg en vakker output på kodeeksemplene dine.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jakob</dc:creator><pubDate>Tue, 24 Apr 2007 09:49:13 -0000</pubDate></item></channel></rss>