0 Replies Latest reply on Jul 16, 2002 6:49 AM by dsnyckers

    EJB Design question

    dsnyckers

      Hi,

      I'm wondering what the best solution could be for the following problem.
      In my database model I have the following associations: a Page table which is related to a Article table (m-m).
      I want to be able to edit the article information, so this should be an entity bean. But in order to browse the articles, I need the pages to build some sort of browsing tree. So, I don't think is useful to make an entity bean for the Page object, because no data will be changed and thus persistency is not needed.

      What is the best solution for this case?
      I was thinking of a remote session bean which retrieves all Pages with a list of Articles (only id - title pair) per page, to build the browsing tree.

      TIA,
      Dave