Comments (3)
If you would like us to spend some time helping you to diagnose the problem, please spend some time describing it and, ideally, providing a minimal yet complete sample that reproduces the problem.
You can share it with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to this issue.
from spring-data-jpa.
study_jpa_query.zip
In this project, I am learning to use a custom sql method in the JPA operating database. When I define an "INSERT" method, the "INSERT unexpected" problem occurs. I use the "@ Query annotation" where the problem occurs. After I use mybaties, I call the @ Insert annotation in mybaties to solve the problem. How can I solve the problem without using mybaties
In this project, I am learning to use a custom sql method in the JPA operating database. When I define an "INSERT" method, the "INSERT unexpected" problem occurs. I use the "@ Query annotation" where the problem occurs. After I use mybaties, I call the @ Insert annotation in mybaties to solve the problem. How can I solve the problem without using mybaties
from spring-data-jpa.
The code is a pretty wild mix of annotations. Generally speaking, Spring Data isn't raising any IDE errors, that's the responsibility of IDE plugin authors. For any modifying queries, please add @Modifying
to indicate that the query is running insert/update/delete statements. Also, the @Query("INSERT INTO …
) query is missing nativeQuery = true
.
from spring-data-jpa.
Related Issues (20)
- BadJpqlGrammarException when parsing query containing lateral keyword used as property name. HOT 1
- Missing `@Transactional` on `SimpleJpaRepository.delete(spec)` HOT 2
- Provide a way to do DISTINCT ON of PostgresSQL HOT 3
- [Bug] StaleObjectStateException when search in EntityListener @PostRemove method HOT 1
- Search Functionality in Docs Does Not Work HOT 1
- Support of CTE with Pageable HOT 1
- [Virtual Threads] Possible Thread Pinning in `PartTreeJpaQuery.QueryPreparer#createQuery()` HOT 2
- Upgrade to Hibernate 6.4.9.Final. HOT 1
- Upgrade to Eclipselink 4.x
- Spring Data JPA 3.3.0 generates incorrect condition for WHERE clause HOT 3
- Release 3.2.8 (2023.1.8)
- Release 3.3.2 (2024.0.2)
- After upgrading from Spring Boot 2.7.5 to 3.2.5, stored procedure calls treat named parameters as positional parameters. HOT 1
- Unable to start properly after packaging with graalvm HOT 3
- Cannot deal TupleBackedMap type HOT 2
- Dto projection does not work as expected with Kotlin data classes HOT 2
- Switch to Broadcom docker proxy
- weird vscode HQL syntax error in Spring Boot HOT 1
- Investigate 'slim' Specification API
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-data-jpa.