Skip to content

Commit ab3ff87

Browse files
committed
Better output statements
1 parent 3c495ea commit ab3ff87

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • jpa/unsynchronized-pc/src/main/java/org/javaee7/jpa/unsynchronized/pc

jpa/unsynchronized-pc/src/main/java/org/javaee7/jpa/unsynchronized/pc/TestServlet.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,16 @@ protected void processRequest(HttpServletRequest request, HttpServletResponse re
7272
PrintWriter out = response.getWriter();
7373
out.println("<html>");
7474
out.println("<head>");
75-
out.println("<title>List of Employees</title>");
75+
out.println("<title>Unsynchronized Persistence Context</title>");
7676
out.println("</head>");
7777
out.println("<body>");
78+
out.println("<h1>Unsynchronized Persistence Context</h1>");
7879
listEmployees(out, "Initial list", "Total == 7?");
7980
Employee e = new Employee(8, "Priya");
8081
bean.persistWithoutJoin(e);
81-
listEmployees(out, "Unsynchronized PC has not joined a transaction", "Total == 7?");
82+
listEmployees(out, "PC has not joined a transaction", "Total == 7?");
8283
bean.persistWithJoin(e);
83-
listEmployees(out, "Unsynchronized PC has joined a transaction", "Total == 8?");
84+
listEmployees(out, "PC has joined a transaction", "Total == 8?");
8485
out.println("</body>");
8586
out.println("</html>");
8687
}

0 commit comments

Comments
 (0)