Skip to main content
Rath FrameworksPostgreSQL-first

Build data services without schema guesswork.

RathORM aligns your annotated entities with PostgreSQL safely: create tables, add columns, then apply constraints—all without fragile migration files.

Java 21PostgreSQLMaven 3.9+ActiveJDBC friendly

Migration flow

  • Scan entities

    Discover annotated models across configured packages.

  • Sync schema

    Create tables, add columns, and apply constraints in-order.

  • Optionally drop extras

    Remove unused columns or drop tables when you opt in.

DbProperties props = DbProperties.load();
new DatabaseBootstrapper().ensureDatabaseExists(props);

List<Class<?>> entities = EntityScanner.findConfiguredEntities();
new SchemaMigrator().syncTables(entities, false);

Why RathORM

Designed for clean database rollouts

Lean migration helpers, pragmatic defaults, and zero fluff for teams that want PostgreSQL to stay in sync with their models.

Entities → Tables

Annotation-first metadata

RathORM reads your annotated entities to build the database truth—no extra DSL or YAML.

Ordered migrations

Safe schema alignment

Creates tables, adds new columns, then applies constraints in the right order for PostgreSQL.

Ship faster

Clean connection helpers

Tiny DbRead/DbTransaction wrappers and batch utilities keep JDBC/ActiveJDBC code compact.

Quick start

Ship a schema-safe service in minutes

  1. Add the RathORM dependency.
  2. Point `rathorm.properties` at your PostgreSQL instance.
  3. Annotate entities and run `RathORM.create()` to sync the schema.
Add the dependency
<dependency>
<groupId>com.tranztechnologies</groupId>
<artifactId>rathorm</artifactId>
<version>1.0.8</version>
</dependency>
Run it
RathORM.create(
/* dropOnly */ false,
/* dropFirst */ false,
/* dropExtraColumns */ false
);

Ready to build?

Move your PostgreSQL schema with confidence.

Explore the docs, drop in the dependency, and let RathORM keep your database aligned.