[jboss-cvs] JBossAS SVN: r97886 - projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-spring/src/main/java/org/jboss/snowdrop/samples/sportsclub/service.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Dec 16 07:49:56 EST 2009


Author: lvlcek at redhat.com
Date: 2009-12-16 07:49:56 -0500 (Wed, 16 Dec 2009)
New Revision: 97886

Modified:
   projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-spring/src/main/java/org/jboss/snowdrop/samples/sportsclub/service/ReservationService.java
   projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-spring/src/main/java/org/jboss/snowdrop/samples/sportsclub/service/ReservationServiceImpl.java
Log:


Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-spring/src/main/java/org/jboss/snowdrop/samples/sportsclub/service/ReservationService.java
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-spring/src/main/java/org/jboss/snowdrop/samples/sportsclub/service/ReservationService.java	2009-12-16 12:43:26 UTC (rev 97885)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-spring/src/main/java/org/jboss/snowdrop/samples/sportsclub/service/ReservationService.java	2009-12-16 12:49:56 UTC (rev 97886)
@@ -14,4 +14,6 @@
    List<Reservation> getReservations(Date fromDate, Date toDate, Integer nim, Integer max, List<EquipmentType> types);
 
    Integer countReservationsForRange(Date fromDate, Date toDate, List<EquipmentType> types);
+
+   void create();
 }

Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-spring/src/main/java/org/jboss/snowdrop/samples/sportsclub/service/ReservationServiceImpl.java
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-spring/src/main/java/org/jboss/snowdrop/samples/sportsclub/service/ReservationServiceImpl.java	2009-12-16 12:43:26 UTC (rev 97885)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-spring/src/main/java/org/jboss/snowdrop/samples/sportsclub/service/ReservationServiceImpl.java	2009-12-16 12:49:56 UTC (rev 97886)
@@ -13,13 +13,12 @@
 /**
  *
  */
- at Transactional
+ at Transactional(readOnly = true)
 public class ReservationServiceImpl implements ReservationService
 {
 
    private ReservationRepository reservationRepository;
 
-   @Transactional(readOnly = true)
    public List<Reservation> getReservations(Date fromDate, Date toDate, Integer min, Integer max, List<EquipmentType> types)
    {
       ReservationSearchCriteria criteria = new ReservationSearchCriteria();
@@ -49,6 +48,12 @@
       return reservationRepository.countByCriteria(criteria);
    }
 
+   @Transactional(readOnly = false)
+   public void create()
+   {
+      //To change body of implemented methods use File | Settings | File Templates.
+   }
+
    public ReservationRepository getReservationRepository()
    {
       return reservationRepository;




More information about the jboss-cvs-commits mailing list