XMLWordPrintable

Details

    • Sub-task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 2.12.2.Final
    • 2.12.3.Final
    • Java EE
    • None

    Description

      It would be useful to have a command to add a new JPA NamedQuery to an existing entity. A command such as :

      jpa-new-named-query --named findAll --query select b from Book b
      

      Would add to an existing entity the following code :

      @Entity
      @NamedQueries({
               @NamedQuery(name = Book.FIND_ALL, query = "SELECT b FROM Book b")
      })
      public class Book implements Serializable
      {
         public static final String FIND_ALL = "Book.findAll";
         ...
      }
      

      Attachments

        Issue Links

          Activity

            People

              rhn-support-ggastald George Gastaldi
              agoncal Antonio Goncalves (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: