javaeetutorial
  1. javaeetutorial
  2. JAVAEETUTORIAL-38

Change from DBAO to using JPA entity classes

    Details

    • Type: Task Task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.7-5
    • Fix Version/s: 6.0.7-5
    • Component/s: examples
    • Labels:
      None

      Activity

      Hide
      jendrock added a comment -

      Kim and I completed this task. We created and populated the database, ran the NetBeans Create Entities from Database wizard to create a new Book.java file in the dukesbookstore.entities package. We added the findbooks named query to it as well. We got rid of web/bookstore/src/java/com/sun/bookstore6/database/BookDBAO.java and migrated its functionality to dukes-bookstore/src/java/dukesbookstore/ejb/BookRequestBean.java, adding logging functionality and a named query.

      Show
      jendrock added a comment - Kim and I completed this task. We created and populated the database, ran the NetBeans Create Entities from Database wizard to create a new Book.java file in the dukesbookstore.entities package. We added the findbooks named query to it as well. We got rid of web/bookstore/src/java/com/sun/bookstore6/database/BookDBAO.java and migrated its functionality to dukes-bookstore/src/java/dukesbookstore/ejb/BookRequestBean.java, adding logging functionality and a named query.
      Hide
      jendrock added a comment -

      The functionality has been ported to the revised example in web/dukes-bookstore. We tested it and it operates as before - no regressions.

      Show
      jendrock added a comment - The functionality has been ported to the revised example in web/dukes-bookstore. We tested it and it operates as before - no regressions.
      Hide
      jendrock added a comment -

      It works as advertised, so I will close this issue. However, if further testing indicates a need to work on it again, the issue will have to be reopened.

      Show
      jendrock added a comment - It works as advertised, so I will close this issue. However, if further testing indicates a need to work on it again, the issue will have to be reopened.

        People

        • Assignee:
          jendrock
          Reporter:
          chinmayee_srivathsa
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:

            Time Tracking

            Estimated:
            Original Estimate - 2 weeks
            2w
            Remaining:
            Remaining Estimate - 2 weeks
            2w
            Logged:
            Time Spent - Not Specified
            Not Specified