[jboss-cvs] jboss-seam/examples/blog/src/actions ...

Gavin King gavin.king at jboss.com
Tue Oct 24 10:30:12 EDT 2006


  User: gavin   
  Date: 06/10/24 10:30:12

  Modified:    examples/blog/src/actions  BlogService.java
  Log:
  fix bug
  
  Revision  Changes    Path
  1.4       +1 -1      jboss-seam/examples/blog/src/actions/BlogService.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BlogService.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/blog/src/actions/BlogService.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- BlogService.java	12 Oct 2006 02:49:35 -0000	1.3
  +++ BlogService.java	24 Oct 2006 14:30:12 -0000	1.4
  @@ -26,7 +26,7 @@
      @Unwrap
      public Blog getBlog()
      {
  -      return (Blog) entityManager.createQuery("select b from Blog b left join fetch b.blogEntries")
  +      return (Blog) entityManager.createQuery("select distinct b from Blog b left join fetch b.blogEntries")
               .setHint("org.hibernate.cacheable", true)
               .getSingleResult();
      }
  
  
  



More information about the jboss-cvs-commits mailing list