Uploaded image for project: 'JTalks Common'
  1. JTalks Common
  2. JTALKSCOMMON-74

Delete method in AbstractHibernateParentRepository

VotersWatchers
    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: common 0.11
    • Fix Version/s: common 0.11
    • Labels:
      None

      Description

      Delete query is build using simple name of entity class.

      "delete " + getType().getSimpleName() + " e where e.id= :id";

      When multiple mapped entities has the same name (e.g. common Branch and jcomuune Branch) only full names are supported to avoid name conflicts. In such case this method throws exception (smth like "not mapped entity).

      To cover this cases canonical name should be used.

      "delete " + getType().getCanonicalName() + " e where e.id= :id";

        Attachments

          Structure

            Activity

              People

              • Assignee:
                ancient_mariner Alex Lysak
                Reporter:
                lamao Vyacheslav Mishcheryakov
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.25h
                  0.25h

                    Structure Helper Panel