Input SQL

Foreign keys, primary keys, defaults, unique constraints, and enums are automatically mapped to JPA relations and validations.

Java Output

Paste SQL and click Generate to see Java output.

Need to compare two schemas and generate migrations too?

SchemaLens diffs your SQL schemas, detects breaking changes, and generates safe forward + rollback migrations — all in your browser.

Try SchemaLens Free