RathORM aligns your annotated entities with PostgreSQL safely: create tables, add columns, then apply constraints—all without fragile migration files.
Migration flow
Discover annotated models across configured packages.
Create tables, add columns, and apply constraints in-order.
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
Lean migration helpers, pragmatic defaults, and zero fluff for teams that want PostgreSQL to stay in sync with their models.
RathORM reads your annotated entities to build the database truth—no extra DSL or YAML.
Creates tables, adds new columns, then applies constraints in the right order for PostgreSQL.
Tiny DbRead/DbTransaction wrappers and batch utilities keep JDBC/ActiveJDBC code compact.
Quick start
<dependency>
<groupId>com.tranztechnologies</groupId>
<artifactId>rathorm</artifactId>
<version>1.0.8</version>
</dependency>
RathORM.create(
/* dropOnly */ false,
/* dropFirst */ false,
/* dropExtraColumns */ false
);
Ready to build?
Explore the docs, drop in the dependency, and let RathORM keep your database aligned.