cborm

Build and manage Hibernate ORM data access for ColdBox applications.

1|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ColdBox/skills --skill cborm
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cborm
Source: https://github.com/ColdBox/skills/tree/main/modules/cborm
Command: npx skills add https://github.com/ColdBox/skills --skill cborm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers implement reliable Hibernate ORM data-access layers in ColdBox/BoxLang projects, reducing errors from ad hoc queries, transaction misuse, and inefficient association loading.

Core Features & Use Cases

  • BaseORMService and VirtualEntityService patterns for consistent CRUD and repository-style services.
  • Criteria Builder usage for restrictions, projections, joins, subqueries, sorting, and pagination to express complex queries.
  • Transactional service patterns, ORM event interception guidance, and production best practices such as getOrFail semantics and avoiding N+1 queries.
  • Use case: build a paginated admin user listing, perform multi-entity transfers in a single transaction, or run complex search queries across related entities.

Quick Start

Use the cborm skill to create a service that lists active users with paginated results and safe transactional updates.

Frequently Asked Questions about cborm

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

FAQPage Schema
How do I build paginated ORM queries in ColdBox without unbounded result sets?▼

To avoid N+1 queries in ColdBox Hibernate ORM, use the Criteria Builder for explicit joins and projections, loading associated entities efficiently within your data access layer.

How do I manage Hibernate transactions across multiple entities in a ColdBox service?▼

Manage Hibernate transactions in ColdBox by applying transactional service patterns via BaseORMService, allowing multiple entity transfers to execute safely within a single transaction boundary.

What is the best way to implement a repository pattern for CRUD in a BoxLang application?▼

Implement the repository pattern for CRUD in BoxLang by extending VirtualEntityService, which provides consistent data access methods and structured ORM event handling out of the box.

How do I construct complex search queries across related entities using Hibernate in ColdBox?▼

Construct complex search queries across related entities by using the Hibernate Criteria Builder in ColdBox to define subqueries, joins, and restrictions against your ORM mappings.

Can I use getOrFail semantics for ColdBox ORM data services to handle missing records?▼

Yes, you can use getOrFail semantics in ColdBox ORM data services to safely retrieve records by ID, automatically throwing an exception when a requested entity is not found.