O'Reilly logo

Professional Cairngorm™ by Jeremy Wischusen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

20.2. Value Objects

Retrieving posts by category involves passing the categoryId so that posts with that categoryId can be retrieved. This property is already represented on the CategoryVO, so you can use the existing value object to do this.

Keyword searches require only the string containing the search terms to be sent. Because of this there is no real collection of related data to be passed, only a single string. Creating a search value object to pass this string would be overkill (at least for the way it is being done in the sample application).

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required