• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

FBN client side classes (Itinerary, Segment, Flight)

 
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,

With the FBN assignment, the domain model shows Itinerary, Segment and Flight.

It seems that there need to be something equivalent on Client side as well, because we would not want to send clients a chain of objects when they are only interested in some properties of these objects.

I am thinking there has to be a FlightSpecification class since client class does not need to know that Flight has links to Equipments, etc., in other words I do not think we should expose Flight's server side functionality to client.

The question next is do I need to create client side classes for Segment as well? If not, where do I place info. regarding Itinerary and Segment for clients? There has to be a class to hold such info. Since Segment has links to server side Flight, I wouldnot want to send Segment to client, either.

What does everyone else think?

Thanks,
Yan
 
Ranch Hand
Posts: 376
Scala Monad
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As an architect, you should be familiar with the J2EE design patterns (particularly with the VO/DTO pattern)
;-)
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic