Skip to content

FIX: DB Entity Schema Loader#388

Merged
kishorereddy merged 7 commits into
mainfrom
fix/250126-db
Jan 30, 2026
Merged

FIX: DB Entity Schema Loader#388
kishorereddy merged 7 commits into
mainfrom
fix/250126-db

Conversation

@kishorereddy

@kishorereddy kishorereddy commented Jan 30, 2026

Copy link
Copy Markdown
Collaborator

Overview

Fix misc issues w/ the kiit.entities Schema loading.
The schema loader loads the schema ( properties ) of a data class that are annotated with Column.
These represent columns in a database table.

  1. required: Autoload the required flag on the field/annotation based on field nullability
  2. tags : Added tags field on the column Annotation transferred to Field on Model
  3. double: Fix the postgres double type mapping from Double to Float8
@Table("user", schema = "unit_tests")
data class UserTypes(

    @Column(length = 100)
    val email: String = "",

    @Column(length = 100)
    val website: String? = null,

    @Column(length = 100, required = true, tags = ["secondary_url"])
    val link: String? = null
...

Ticket(s)

n/a

Links(s)

n/a

Dependencies

n/a

Design

n/a - minor fixes.

Notes

n/a

Pending

n/a

Tests

  1. added tests for the required fields
  2. more tests will be added in next PR

@kishorereddy kishorereddy merged commit 6bd1cfb into main Jan 30, 2026
1 check failed
@kishorereddy kishorereddy changed the title FIX: DB Schema generator FIX: DB Entity Schema Loader Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant