[weld-commits] Weld SVN: r6886 - archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Tue Aug 3 18:31:17 EDT 2010


Author: dan.j.allen
Date: 2010-08-03 18:31:16 -0400 (Tue, 03 Aug 2010)
New Revision: 6886

Modified:
   archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/MemberListProducer.java
Log:
update comments


Modified: archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/MemberListProducer.java
===================================================================
--- archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/MemberListProducer.java	2010-08-03 22:19:46 UTC (rev 6885)
+++ archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/MemberListProducer.java	2010-08-03 22:31:16 UTC (rev 6886)
@@ -23,8 +23,9 @@
 
    private List<Member> members;
 
+   // The @Named annotation allows us to access the return value via the EL variable name "member" in the UI (e.g., Facelets or JSP view)
    @Produces
-   @Named   // This annotation allows us to access this list via name "members" in the facelets UI via EL
+   @Named
    public List<Member> getMembers()
    {
       return members;
@@ -41,7 +42,7 @@
       CriteriaBuilder cb = em.getCriteriaBuilder();
       CriteriaQuery<Member> criteria = cb.createQuery(Member.class);
       Root<Member> member = criteria.from(Member.class);
-      //Uncomment if you would like to try out typesafe criteria queries, a new feature in JPA 2.0.
+      // Uncomment if you would like to try out typesafe criteria queries, a new feature in JPA 2.0
       // criteria.select(member).orderBy(cb.asc(member.get(Member_.name)));
       criteria.select(member).orderBy(cb.asc(member.get("name")));
       members = em.createQuery(criteria).getResultList();



More information about the weld-commits mailing list