Sangeetha-Grantha

Metadata Value
Status Active
Version 1.1.0
Last Updated 2026-09-10
Author Sangeetha Grantha Team
Document Type Decision record

ADR-007: Exposed ORM Selection (Kotlin DSL)


[!NOTE] Decision record: preserve the original rationale and check its decision/supersession status. Current runtime guidance is in system architecture and Flyway migrations.

Context

Sangita Grantha requires a type-safe data access layer that integrates tightly with Kotlin, supports PostgreSQL features (UUID, enums, JSONB), and provides predictable performance for complex domain queries. The team evaluated several options including raw SQL, JPA/Hibernate, and Kotlin-native DSLs.

Decision

Adopt Exposed (DSL) as the primary ORM/query builder for the backend.

Rationale

Consequences

Follow-up


Section index · Documentation home · Feature status