make use of MQL's comment feature to align with Hibernate's counterparts

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Trivial - P5
    • None
    • 2
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We could populate MQL's comment field by tapping into the following two possible sources:

      • QueryOptions.getComment in org.hibernate.sql.ast.SqlAstTranslator.translate (see MongoTranslatorFactory.buildSelectTranslator and MongoTranslatorFactory.buildMutationTranslator)
      • TableMutation.getMutationComment in org.hibernate.sql.ast.SqlAstTranslatorFactory.buildModelMutationTranslator

       
      The former is passed when user is creating a select or mutation query statement by invoking comment setter method, and is also implicitly set by Hibernate ORM when HQL is used; the latter is hardcoded by Hibernate.

       

      Addressing the source code notes tagged with TODO-HIBERNATE-53 is in scope of this ticket.

            Assignee:
            Unassigned
            Reporter:
            Nathan Xu
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: