<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" 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><atom:link href="https://thinkinginsideabiggerbox.disqus.com/a_brief_adventure_with_universal_repositories_and_rest_web_services/latest.rss" rel="self"></atom:link><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://johannesbrodwall.com/2007/03/03/a-brief-adventure-with-universal-repositories-and-rest-web-services/#comment-1797902</link><description>&lt;p&gt;Hi, Mats&lt;/p&gt;&lt;p&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;/p&gt;&lt;p&gt;Does that make sense?&lt;/p&gt;</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://johannesbrodwall.com/2007/03/03/a-brief-adventure-with-universal-repositories-and-rest-web-services/#comment-1797901</link><description>&lt;p&gt;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?&lt;/p&gt;</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://johannesbrodwall.com/2007/03/03/a-brief-adventure-with-universal-repositories-and-rest-web-services/#comment-1797903</link><description>&lt;p&gt;Thanks for the good comments, Mats.&lt;/p&gt;&lt;p&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;/p&gt;&lt;p&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;/p&gt;&lt;p&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.&lt;/p&gt;</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://johannesbrodwall.com/2007/03/03/a-brief-adventure-with-universal-repositories-and-rest-web-services/#comment-1797900</link><description>&lt;p&gt;No problem, I can manage. Just wanted to give feedback in case you weren't aware. And thanks for the Maven tip.&lt;/p&gt;&lt;p&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;/p&gt;&lt;p&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;/p&gt;&lt;p&gt;Not "complaining", just trying to provide some humble feedback, hoping it might be of some interest.&lt;/p&gt;</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://johannesbrodwall.com/2007/03/03/a-brief-adventure-with-universal-repositories-and-rest-web-services/#comment-1797905</link><description>&lt;p&gt;Hi, Mats&lt;/p&gt;&lt;p&gt;Yeah, as it turns out, Spring is a dependency hog, and the other dependencies stack up.&lt;/p&gt;&lt;p&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;/p&gt;&lt;p&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.&lt;/p&gt;</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://johannesbrodwall.com/2007/03/03/a-brief-adventure-with-universal-repositories-and-rest-web-services/#comment-1797904</link><description>&lt;p&gt;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.&lt;/p&gt;</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://johannesbrodwall.com/2007/03/03/a-brief-adventure-with-universal-repositories-and-rest-web-services/#comment-1797899</link><description>&lt;p&gt;Hei Johannes,&lt;/p&gt;&lt;p&gt;Sjekk ut WP-Syntax pluggen til WordPress. Vil gi deg en vakker output på kodeeksemplene dine.&lt;/p&gt;</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>