XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • 2.12.3.Final
    • 2.12.2.Final
    • Java EE
    • None

      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";
         ...
      }
      

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

                Created:
                Updated:
                Resolved: