Details

    • Type: Bug Bug
    • Status: Awaiting Feedback
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      @NamedNativeQueries is a useful thing, but I have found some problems during my using.
      1、Normal

       /**
       * @NamedNativeQueries({
       *      @NamedNativeQuery(
       *          name            = "fetchMultipleJoinsEntityResults",
       *          resultSetMapping= "mappingMultipleJoinsEntityResults",
       *          query            = "SELECT * FROM test "
       *      )
       * })
       */
      

      2、Error,cannot connect to the server

       /**
       * @NamedNativeQueries({
       *      @NamedNativeQuery(
       *          name            = "fetchMultipleJoinsEntityResults",
       *          resultSetMapping= "mappingMultipleJoinsEntityResults",
       *          query            = "SELECT * 
                  FROM test "
       *      )
       * })
       */
      

      3、Cannot use alias.The same problem as the second one.

      .......
       query            = "SELECT a as test FROM test "
      

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            dingdangjyz
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: