Re: 3T Relationships [are done]

From: Tore Halset (halse..vv.ntnu.no)
Date: Thu Sep 15 2005 - 16:47:24 EDT

  • Next message: Mike Kienenberger: "Re: DataContextFactory"

    On Sep 15, 2005, at 22:30, Andrus Adamchik wrote:

    > What I am still unclear is a very simple case below. Consider this
    > method called from UI (web or Swing), not on commit:
    >
    > public String getUrl() {
    > return getPart1() + getPart2() + getPart3();
    > }
    >
    > I am trying to avoid duplication of this code between client and
    > server classes. I guess inheritance of server objects from client
    > objects would be an option...

    Ok, I see. The server class could contain some logic that should not
    be exposed on the client. Like dependant on other jars, or some
    secret biz logic. So inheritance of server classes are not always a
    good option.

    I think code duplication is ok in that case :/

      - Tore.



    This archive was generated by hypermail 2.0.0 : Thu Sep 15 2005 - 16:47:26 EDT