Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-44166

Samigo update positional parameters to JPA

    XMLWordPrintable

    Details

    • Test Plan:
      Hide

      Test adding / editing / removing parts in an assessment

      Show
      Test adding / editing / removing parts in an assessment

      Description

      Positional parameters changed in JPA

      Previous

      .createQuery("update ItemTag it set it.tagLabel = ?, it.tagCollectionId = ?, it.tagCollectionName = ? where it.tagId = ?")

      Current

       

      .createQuery("update ItemTag it set it.tagLabel = ?1, it.tagCollectionId = ?2, it.tagCollectionName = ?3 where it.tagId = ?4")
      .setParameter(1, tagView.tagLabel)
      .setParameter(2, tagView.tagCollectionId)
      .setParameter(3, tagView.tagCollectionName)
      .setParameter(4, tagView.tagId)
      

       

      Caused by: org.hibernate.QueryException: Legacy-style query parameters (`?`) are no longer supported; use JPA-style ordinal parameters (e.g., `?1`) instead : select s.assessment.assessmentBaseId from org.sakaiproject.tool.assessment.data.dao.assessment.SectionData s, org.sakaiproject.tool.assessment.data.dao.asse
      ssment.ItemData i where s.id = i.section AND i.itemId = ?
      

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  ern Earle R Nietzel
                  Reporter:
                  ern Earle R Nietzel
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration