Re: transient relations

From: Jürgen Saar (jsaa..eb.de)
Date: Sat Oct 30 2004 - 13:52:49 EDT

  • Next message: Mike Kienenberger: "Re: transient relations"

    > Why not just add a method to the Order class that does something like the
    > following?
    >
    > public List getUrlList()
    > {
    > return listOfUrlsCreatedFromArchiveForOrder(this);
    > }
    >
    > The purpose of Cayenne is to make a database-backed object look like a
    > regular java object. It seems that you are trying to do the opposite --
    > make a regular java object look like a database-backed object.
    >
    > What are you hoping to accomplish? Is there a reason why you want URLs to
    > look like a database-backed object that you have not stated? It's unclear
    > why you want to create a DBEntity or ObjEntity for URLs.
    > Why not leave it as a non-database object?

    I'm building some generic classes for reporting and webinterfaces.
    For those classes the attributes/relations are all they can see
    and because of this, all data have to be transported this way.

    BTW: my methods looks like yours, addionally urlList is a relation in the repository.

    ________________________________________________________________
    Verschicken Sie romantische, coole und witzige Bilder per SMS!
    Jetzt neu bei WEB.DE FreeMail: http://freemail.web.de/?mc=021193



    This archive was generated by hypermail 2.0.0 : Sat Oct 30 2004 - 13:53:04 EDT