Uploaded image for project: 'Hibernate ODM'
  1. Hibernate ODM
  2. HIBERNATE-53

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

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • 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; the latter is hardcoded by Hibernate.

       

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

            Assignee:
            Unassigned Unassigned
            Reporter:
            nathan.xu@mongodb.com Nathan Xu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None