Community라이팅 & 에디팅github.com

Jamie-BitFlight/enterprise-hibernate-hbm

Dasel v3 쿼리 패턴을 활용한 Hibernate .hbm.xml 매핑 파일 분석 — 엔티티-테이블 바인딩, Java 프로퍼티-컬럼 추출, 일대다 set/list/bag 관계 추적, 다대일 외래 키 탐색, 60개 이상의 HBM 파일 배치 스캔. Hibernate ORM 클래스 매핑을 질의하거나, Java 퍼시스턴스 레이어에서 스키마 메타데이터를 추출하거나, 엔터프라이즈 레거시 코드베이스의 엔티티-컬럼 관계를 감사할 때 사용합니다.

enterprise-hibernate-hbm란 무엇인가요?

이 스킬은 Hibernate .hbm.xml 매핑 파일을 질의하기 위한 dasel v3 기반 도메인 스킬입니다. 엔티티-테이블 바인딩, Java 프로퍼티-컬럼 매핑, set/list/bag 같은 컬렉션 관계, many-to-one 외래 키를 추출하는 dasel 쿼리 패턴을 제공합니다. 60개 이상의 HBM 파일을 배치 처리하여 엔티티→테이블 매핑을 한 번에 추출할 수도 있습니다. dasel의 `-i xml` 플래그를 항상 명시적으로 사용해야 하며, XML 속성 쿼리 시 dasel 프렌들리 모드에서 `-name`, `-table` 같은 `-` 접두사 문법을 사용해야 합니다. 결과 파일은 항상 `/tmp/` 디렉터리에 저장하며 소스 트리를 변경하지 않습니다. 이 스킬은 Claude Code, Cursor, Codex와 같은 AI 에이전트에서 사용할 수 있으며, 엔터프라이즈 레거시 코드베이스의 퍼시스턴스 레이어 감사나 스키마 분석에 특히 유용합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Jamie-BitFlight/claude_skills/tree/main/plugins/dasel/skills/enterprise-hibernate-hbm

Installed? Explore more 라이팅 & 에디팅 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Hibernate HBM 매핑 쿼리

<when_to_use>

Hibernate .hbm.xml 매핑 파일을 질의할 때 — 엔티티-테이블 바인딩, 프로퍼티-컬럼 매핑, 컬렉션 관계(set/list/bag), 외래 키 탐색, 또는 60개 이상의 HBM 파일을 포함한 엔터프라이즈 퍼시스턴스 레이어의 배치 스캔을 실행할 때 이 스킬을 로드합니다.

</when_to_use>

Hibernate .hbm.xml 매핑 파일에 대한 dasel v3 쿼리용 도메인 스킬입니다.

속성 구문 (필수): dasel 프렌들리 모드(기본값)에서 XML 속성은 - 접두사를 사용합니다. name → -name, table → -table, column → -column.

파서 플래그 (필수): 항상 -i xml을 명시적으로 전달하세요. .hbm.xml 파일의 자동 감지에 의존하지 마세요.

엔티티 발견

# 정규화된 Java 엔티티 클래스 이름
cat User.hbm.xml | dasel -i xml 'hibernate-mapping.class.-name'

# 엔티티가 매핑되는 데이터베이스 테이블
cat User.hbm.xml | dasel -i xml 'hibernate-mapping.class.-table'

프로퍼티 컬럼 매핑

# 엔티티의 모든 매핑된 Java 프로퍼티 이름
cat User.hbm.xml | dasel -i xml 'hibernate-mapping.class.property.map(-name)'

# 매핑된 프로퍼티의 모든 데이터베이스 컬럼 이름
cat User.hbm.xml | dasel -i xml 'hibernate-mapping.class.property.map(-column)'

컬렉션 관계

<set>, <list>, <bag> — 일대다 관계.

# 모든 set 컬렉션 이름 (일대다)
cat User.hbm.xml | dasel -i xml 'hibernate-mapping.class.set.map(-name)'

# 모든 list 컬렉션 이름
cat User.hbm.xml | dasel -i xml 'hibernate-mapping.class.list.map(-name)'

외래 키 발견

<many-to-one> — 다른 엔티티를 가리키는 외래 키 컬럼.

# 모든 외래 키 컬럼 이름
cat User.hbm.xml | dasel -i xml 'hibernate-mapping.class.many-to-one.map(-column)'

# 참조된 모든 엔티티 클래스 이름 (FK 대상)
cat User.hbm.xml | dasel -i xml 'hibernate-mapping.class.many-to-one.map(-class)'

배치 엔티티-테이블 매핑

모든 .hbm.xml 파일에서 엔티티→테이블 쌍을 추출합니다. /tmp/에 작성하며 — 소스 트리에는 절대 작성하지 않습니다.

for f in $(fdfind -e hbm.xml .); do
  entity=$(cat "$f" | dasel -i xml 'hibernate-mapping.class.-name' 2>/dev/null)
  table=$(cat "$f" | dasel -i xml 'hibernate-mapping.class.-table' 2>/dev/null)
  echo "$entity -> $table"
done > /tmp/entity_table_map.txt

잘못된 파일과 누락된 속성은 2>/dev/null 억제를 통해 빈 값을 생성합니다.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

Jamie-BitFlight/agentskill-kaizen-meta-docs

Agentskill kaizen plugin documentation index. Load when needing to read about cross-platform notes, improvement plans, or DuckDB integration.

Jamie-BitFlight/bash-51-features

Bash 5.1 release features and improvements with practical examples. Use when working with Bash 5.1 features, epoch time variables, redirection enhancements, or when user asks about Bash 5.1 changes, new features, or version-specific capabilities.

Jamie-BitFlight/bash-52-features

Bash 5.2 release features and improvements with practical examples. Use when working with Bash 5.2 features, variable handling enhancements, readline improvements, or when user asks about Bash 5.2 changes, new features, or version-specific capabilities.

Jamie-BitFlight/bash-53-features

Bash 5.3 release features and improvements with practical examples. Use when working with Bash 5.3 features, new command substitution, GLOBSORT, loadable builtins, or when user asks about Bash 5.3 changes, new features, or version-specific capabilities.

Jamie-BitFlight/bash-development

This skill should be used when the user asks to "write a bash script", "create a shell script", "implement bash function", "parse arguments in bash", "handle errors in bash", or mentions bash development, shell scripting, script templates, or modern bash patterns.

Jamie-BitFlight/bash-lint

This skill should be used when the user asks to "lint bash script", "run shellcheck", "format shell script", "use shfmt", "fix shellcheck errors", or mentions shell script linting, formatting, code quality, or pre-commit hooks for bash.

Jamie-BitFlight/bash-logging

This skill should be used when the user asks to "add logging to bash script", "colorize output", "implement log levels", "CI/CD sections", "terminal colors in bash", or mentions logging functions, emoji output, collapsible CI sections, or shlocksmith.

Jamie-BitFlight/bash-portability

This skill should be used when the user asks about "POSIX compatibility", "portable shell scripts", "cross-shell compatibility", "bashisms", "shebang selection", or mentions writing scripts that work on different shells (bash, sh, dash, zsh) or different systems.

Jamie-BitFlight/bash-testing

This skill should be used when the user asks to "test bash script", "write shell tests", "use shunit2", "use shellspec", "create test suite for bash", or mentions unit testing, test frameworks, mocking, or test-driven development for shell scripts.

Jamie-BitFlight/brainstorming-skill

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or when users request help with ideation, marketing, and strategic planning. Explores user intent, requirements, and design before implementation using research-validated prompt patterns.

Jamie-BitFlight/clang-format

Configure clang-format code formatting. Use when: user mentions clang-format or .clang-format, analyzing code style/patterns, creating/modifying formatting config, troubleshooting formatting, brace styles/indentation/spacing/alignment/pointer alignment, or codifying conventions.

Jamie-BitFlight/commitlint

When setting up commit message validation for a project. When project has commitlint.config.js or .commitlintrc files. When configuring CI/CD to enforce commit format. When extracting commit rules for LLM prompt generation. When debugging commit message rejection errors.

Jamie-BitFlight/conventional-commits

When writing a git commit message. When task completes and changes need committing. When project uses semantic-release, commitizen, git-cliff. When choosing between feat/fix/chore/docs types. When indicating breaking changes. When generating changelogs from commit history.

Jamie-BitFlight/dasel-reference

Use when querying, modifying, or converting JSON, YAML, TOML, XML, CSV, HCL, or INI with dasel v3. Complete reference for selectors, functions, conditionals, variables, spread operator, type casting, and format-specific patterns.

Jamie-BitFlight/data-exploration

Use when exploring unknown structured data files with dasel v3 — discover schema, list keys, find nested values, sample arrays, identify data types across JSON, YAML, TOML, XML, CSV, HCL, INI formats

Jamie-BitFlight/data-transformation

Use when modifying, converting, or transforming structured data with dasel v3 — in-place mutations, format conversion, batch operations, array manipulation, object construction, and merge patterns across JSON, YAML, TOML, XML, CSV, HCL, INI

Jamie-BitFlight/delegate

Decompose substantive work into phases, dispatch each phase to a sub-agent, and adjudicate what comes back. Use whenever a request asks for implementation, investigation, a fix, a review, or any change to files — including small ones — and whenever you are about to read source or run a diagnostic yourself instead of handing it off. Also use when a report from a sub-agent needs judging, when a phase needs re-dispatching, or when a user names one instance of a pattern. Does not apply when your own prompt begins "Your ROLE_TYPE is sub-agent." — then follow references/sub-agent-contract.md instead.

Jamie-BitFlight/enterprise-installanywhere

Dasel v3 query patterns for InstallAnywhere .iap_xml installer definitions — use when querying action sequences, discovering variables, resolving platform conditions, navigating panels, or comparing installer variants. Files are 2.5+ MB, 65,000+ lines — too large for context reads, requires structural dasel queries.

Jamie-BitFlight/enterprise-maven-pom

Dasel v3 selector patterns for Maven POM XML files — use when querying dependency versions, filtering by groupId or scope, extracting module hierarchy from parent POMs, or detecting version conflicts across enterprise multi-module Java projects. Load this skill when working with pom.xml files using dasel.

Jamie-BitFlight/enterprise-spring-xml

Dasel v3 selectors for Spring bean factory XML — use when querying any Spring ApplicationContext XML for bean discovery, dependency wiring, JMS destination mapping, property injection extraction, or cross-bean reference tracing. Load this skill before writing dasel selectors against Spring bean XML files (applicationContext.xml, *_beans.xml, spring-*.xml).

관련 스킬