create-persistence-adapter

Scaffolds or updates complete JPA persistence adapters including entity, repository, mapper, and adapter classes for a domain aggregate.

3|Updated Feb 6, 2025
One-click install
npx skills add https://github.com/emaarco/easy-zeebe --skill create-persistence-adapter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-persistence-adapter
Source: https://github.com/emaarco/easy-zeebe/tree/main/.claude/skills/create-persistence-adapter
Command: npx skills add https://github.com/emaarco/easy-zeebe --skill create-persistence-adapter

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation and updating of the boilerplate code required for a JPA persistence adapter, significantly reducing the manual effort and potential for errors in setting up data access layers.

Core Features & Use Cases

  • Full Adapter Generation: Creates Entity, JpaRepository, Mapper, and PersistenceAdapter classes.
  • Intelligent Updates: Updates existing files by adding missing methods or fields based on domain entities and port interfaces.
  • Use Case: When developing a new feature that requires storing user subscription data, use this Skill to generate all necessary JPA components, ensuring consistency and adherence to best practices.

Quick Start

Use the create persistence adapter skill to scaffold the persistence layer for the newsletter subscription.

Frequently Asked Questions about create-persistence-adapter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a JPA persistence adapter for a domain aggregate?

To scaffold a JPA persistence adapter, generate the Entity, JpaRepository, Mapper, and PersistenceAdapter classes from a domain aggregate. This ensures consistency with domain entities and outbound repository port interfaces.

What is the best way to generate boilerplate code for Spring Data JPA repositories?

Generating boilerplate for Spring Data JPA repositories involves scaffolding complete persistence adapters, including mappers and entities, for a given aggregate. This reduces manual effort and potential errors in data access layer setup.

Can I update existing JPA entities and repository port interfaces without overwriting code?

Yes, you can update existing JPA entities and repository port interfaces without overwriting code. The tool intelligently adds missing methods or fields to existing files while ensuring consistency with the domain model.

Does this persistence adapter scaffolding tool work with Spring Data and JPA frameworks?

Yes, this scaffolding tool works with Spring Data and JPA frameworks. It generates JPA repository interfaces, entity classes, and mappers tailored to domain aggregates and outbound port interfaces.

What components are included when generating a JPA persistence adapter?

Generating a JPA persistence adapter includes creating Entity, JpaRepository, Mapper, and PersistenceAdapter classes. These components align with your domain entities to establish a complete data access layer.

When do I need to scaffold a persistence adapter for my application?

You need to scaffold a persistence adapter when developing a new feature requiring data storage, such as user subscription data. It generates necessary JPA components to ensure adherence to architectural best practices.