Issue with OptimisticLockType.DIRTY not working as expected
fun main(args: Array)
{
runApplication(*args).getBean(JpaTest::class.java).test()
}
@SpringBootApplication
class JpaTest
{
@Autowired
lateinit var repository: PersonRepository
fun test()
{
repository.save(Person())
runBlocking {
suspend fun update(name: String, delay: Long)
{
val p = repository.findById(1).get()
delay(delay)
println("=== $name")
p.name = name...