Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1 RC1
    • Component/s: None
    • Labels:
      None

      Description

      An additional annotation which indicates that locking should be used.

      public interface ContactRepository extends JpaRepository<Contact, Long> {
        @Lock(LockModeType.PESSIMISTIC_WRITE)
        public Contact findById( Long id );
      }
      

      and

        @Query("select c from Contact c where c.username = ?")
        @Lock(LockModeType.READ)
        public List<Contact> findByName(String name);
      

      Also mentioned: http://redmine.synyx.org/boards/2/topics/257

        Attachments

          Activity

            People

            • Assignee:
              olivergierke Oliver Gierke
              Reporter:
              buechelix Andreas Buechele
              Last updater:
              Trevor Marshall
            • Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0d
                0d
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 2.5h
                2.5h