agentsclimarketplace

Spring boot jdbc batch update implementation

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/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.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill spring-boot-jdbc-batch-update-implementation

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.2 KB, 350 tokens by cl100k_base, as published. Nobody here has run it

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

  1. Architecture: Generate the full stack including Controller, Service Interface, Service Implementation, DAO Interface, and DAO Implementation.
  2. Technology: Use Spring Boot with JDBC (JdbcTemplate). Do not use JPA/Hibernate.
  3. Controller: Use @RestController, @PutMapping, and @RequestBody to accept a List of entities.
  4. Service: Define an interface and implementation that delegates the call to the DAO.
  5. DAO Implementation: Use JdbcTemplate to perform the update. Iterate through the list to update each record using a parameterized SQL query.
  6. Fields: The update operation must target the code, name, and description columns based on the id.

Anti-Patterns

  • Do not use JPA repositories or EntityManager.
  • Do not generate code for fields other than code, name, and description unless explicitly asked.
  • 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

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.