【问题标题】:Row lock feature in Jhipster codeJhipster 代码中的行锁定功能
【发布时间】:2015-10-29 06:01:40
【问题描述】:

我正在使用 Jhipster 并在我的应用程序中添加了一些实体。现在我想在我的数据库的几个事务中添加行锁定功能。在 Hibernate 中,它是通过使用给定 http://javacompleteexamples.blogspot.in/2009/07/how-db-locking-system-works-in.html 的会话工厂来完成的,但我没有使用 Jhipster 代码获取 beginTransaction 和 session.get 方法

【问题讨论】:

    标签: jhipster


    【解决方案1】:

    不是真正的 JHipster 问题,而是 Spring Data 问题。 您可以在存储库的某些方法上使用@Lock annotation

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-11-24
      • 2018-03-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多