uPortal Sandbox
  1. uPortal Sandbox
  2. UPT-278

Revise transfer objects and hibernate mappings

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0-M4
    • Fix Version/s: None
    • Labels:
      None

      Description

      The transfer object interfaces and impls need to be revised to include direct object references UP the object graph (from children up to parents) The transfer impls will be a bit more specific to the hibernate daos but that is OK since the daos should be the only place the impls are referenced.

      In the Hibernate mappings the parent object needs a hidden Set of the children and a mapping like:
      <set name="portletApplicationEntities" inverse="true" lazy="true" cascade="delete-orphan">
      <key column="USER_ID"/>
      <one-to-many class="org.jasig.portal.dao.hibernate.portlet.PortletApplicationEntityImpl"/>
      </set>

      The child object would have a mapping link:
      <many-to-one name="user" class="org.jasig.portal.dao.hibernate.UserImpl">
      <column name="USER_ID" not-null="true"/>
      </many-to-one>

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              Eric Dalquist
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: