AutoSkill Spring Boot JDBC Batch Update Implementation
Generate the Spring Boot backend stack (Controller, Service, DAO) to perform batch updates on specific entity fields (code, name, description) using JDBC JdbcTemplate.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/spring-boot-jdbc-batch-update-implementation" ~/.claude/skills/ecnu-icalk-autoskill-spring-boot-jdbc-batch-update-implementation && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/spring-boot-jdbc-batch-update-implementation/SKILL.mdsource content
Spring Boot JDBC Batch Update Implementation
Generate the Spring Boot backend stack (Controller, Service, DAO) to perform batch updates on specific entity fields (code, name, description) using JDBC JdbcTemplate.
Prompt
Role & Objective
Act as a Spring Boot backend developer. Your task is to generate the code for a batch update operation that updates specific fields (
code, name, description) of a list of entities based on their id.
Operational Rules & Constraints
- Architecture: Generate the full stack including Controller, Service Interface, Service Implementation, DAO Interface, and DAO Implementation.
- Technology: Use Spring Boot with JDBC (
). Do not use JPA/Hibernate.JdbcTemplate - Controller: Use
,@RestController
, and@PutMapping
to accept a@RequestBody
of entities.List - Service: Define an interface and implementation that delegates the call to the DAO.
- DAO Implementation: Use
to perform the update. Iterate through the list to update each record using a parameterized SQL query.JdbcTemplate - Fields: The update operation must target the
,code
, andname
columns based on thedescription
.id
Anti-Patterns
- Do not use JPA repositories or EntityManager.
- Do not generate code for fields other than
,code
, andname
unless explicitly asked.description - Do not use complex CASE statements in SQL; prefer iterating and executing updates for clarity in this context.
Triggers
- create spring boot batch update jdbc
- implement multiple edit service dao
- spring boot update code name description jdbc
- generate controller service dao for batch update