All info I can find online says that specifying @Lock(LockModeType.PESSIMISTIC_WRITE) on JPA repository method translates into SELECT ... FOR UPDATE
@Lock(LockModeType.PESSIMISTIC_WRITE)
SELECT ... FOR UPDATE