ページの作成

ページの作成

親となるページを選択してください。

ページは必ず何かしらの親ページに紐づきます。
親ページに紐づくページを子ページといいます。
例: 親=スポーツ, 子1=サッカー, 子2=野球

子ページを親ページとして更に子ページを作成することも可能です。
例: 親=サッカー, 子=サッカーのルール

親ページはいつでも変更することが可能なのでとりあえず作ってみましょう!
テンプレートを更新

9. Caused by: java.lang.RuntimeException: Executing an update/delete query

エラー内容

Caused by: java.lang.RuntimeException: Executing an update/delete query;

nested exception is javax.persistence.TransactionRequiredException: Executing an update/delete query

 

発生条件/原因/対処法

JPAで更新系のSQLを実行した際に発生するエラー。

@Modifyingアノテーションのみ付与した状態で@Transactionalが不足していることが原因。

以下のように実装することで当エラーは解決する。

@Repository
public interface TestRepository extends JpaRepository<TestEntity, String>{
    
    
@Transactional
    @Modifying
    @Query("UPDATE TestEntity te SET te.colA = 1 WHERE te.id = :id")
    Integer updateTest(@Param("id")String id);
}

 

子ページ
子ページはありません
同階層のページ
  1. java.lang.IllegalStateException: CGLIB is required to process @Configuration classes. Either add CGLIB to the classpath or remove the following @Configuration bean definitions: [...]
  2. Error creating bean with name 'org.springframework.aop.config.internalAutoProxyCreator': Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator
  3. No mapping found for HTTP request with URI ... in DispatcherServlet with name ...
  4. An internal error occurred during: "Building UI model". com/google/common/base/Function
  5. No identifier specified for entity : ...
  6. org.hibernate.hql.internal.ast.QuerySyntaxException: table_name is not mapped
  7. No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
  8. java.sql.SQLException: The server time zone value ' ... ' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone
  9. Caused by: java.lang.RuntimeException: Executing an update/delete query
  10. Not supported for DML operations
  11. Field ... required a bean of type ... hat could not be found.
  12. Annotation-specified bean name ' ... ' for bean class [ ... ] conflicts with existing, non-compatible bean definition of same name and class [...]
  13. Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback.
  14. Exception in thread "main" java.lang.UnsupportedClassVersionError: org/springframework/boot/loader/JarLauncher : Unsupported major.minor version 52.0

最近更新/作成されたページ

最近コメントのあったページ

最近の質問

コメント一覧

    No.10 | guest | 2020-03-26 20:40:50

    Substance Abuse Iop Drug Rehab Near Me <a href="http://aaa-rehab.com">Drug Rehab Near Me</a> Drug Rehab Near Me Rehabs That Take Medical http://aaa-rehab.com JamesTop

    No.9 | guest | 2020-03-25 09:38:26

    800-239-8545 viagra ekg before prescribing viagra <a href=" https://pharm-usa-official.com/# #">viagra online </a> viagra headaches cure what is viagra how to use viagra for best results lowest price generic viagra 100mg <a href=https://pharm-usa-official.com/#>viagra generic </a> what if viagra doesn't work viagra sample pack http://www.nekatha.com/blog/?unapproved=52636&moderation-hash=8bf9f0ac97a7b2b7f52b58f3dfe166f2#comment-52636 https://bestbikeonthemarket.com/best-bmx-bikes-under-200/?unapproved=1785&moderation-hash=7bf40d2921043cdd6b3fabed61390386#comment-1785 https://novusbars.com/32-chinese-dominoes-pai-gow/?unapproved=270&moderation-hash=cd0e5eaa001049692e2cdf7e8f5b47c3#comment-270 https://www.spendlifetraveling.com/expat-living-in-valencia-spain/?unapproved=26739&moderation-hash=ce0e76cd1b312d624ce96e693e49a9b2#comment-26739 https://1-0.life/wealth/gta-5-casino-glitch-100000000-in-roulette-glitch-ps4-xbox-working-gta-v-money-glitch-5-star-method/?unapproved=14941&moderation-hash=00db262bcb57ecb49f026aeb81ecbbde#comment-14941

    No.8 | guest | 2020-03-20 00:23:15

    viagra online viagra pills <a href="http://rodich.org/ #">viagra buy </a> generic viagra viagra online viagra 100mg viagra online <a href=https://pastafarianchurch.ru>buy viagra </a> generic viagra viagra 100mg

    No.7 | guest | 2020-02-24 22:10:24

    rehab for marijuana addiction <a href="http://www.drug-treatment.drugrehabssr.com" title="drug treatment">drug treatment</a> drug addicts prison or rehab

    No.6 | guest | 2019-12-16 22:50:22

    Great article! Thank you :) http://www.matchpointnetwork.mx/UserProfile/tabid/42/UserID/2959310/language/en-US/Default.aspx

    No.5 | guest | 2019-12-01 20:15:08

    Rather informative, look forth to coming back. http://baraita.net/homemade-ways-to-remove-wrinkles/ http://baraita.net/quickly-weight-loss/ http://alargamiento-de-pene.eu/maca-peruana.html Virectin user reviews http://pastiglie-per-erezione.eu/vigrxplus.html http://integratorimuscoli.eu/XtremeNO.html

    No.4 | guest | 2019-11-26 19:57:22

    This blog was... how do I say it? Relevant!! Finally I've found something which helped me. Kudos! http://Ironthundersaloon.com/

    No.3 | guest | 2019-11-19 07:59:43

    What?s up, I check your new stuff on a regular basis. Your story-telling style is witty, keep up the good work! https://www.artzign.com

    No.2 | guest | 2019-11-16 16:55:53

    totally device cheap viagra usa without prescription little drawing physically charity [url=http://www.vagragenericaar.org/]cheap viagra online without prescription[/url] really boss abroad anxiety http://www.vagragenericaar.org/ completely weird http://www.vagragenericaar.org/

    No.1 | guest | 2019-11-09 00:31:36

    I?ll right away grasp your rss as I can?t to find your email subscription hyperlink or e-newsletter service. Do you have any? Kindly permit me recognize in order that I may subscribe. Thanks.| https://www.entreprisesrealberube.ca