Skip to content

Add Java type resolver for tenant column type #251

@starnowski

Description

@starnowski

Add component that should resolve Java type resolver for tenant column type based on regex pattern.

For example:
varchar(255) -> java.lang.String

Integration tests:

Given:

  • create funciton get_current_tenant(T arg)
  • create funciton set_current_tenant(T arg)
    J expectedTenant = // init

When:
Class = component.resolve(T)

Then:
PreparedStatement ps = // Prepared statement that invokes set_current_tenant(T arg) function
ps.setArgument(expectedTenant, 1); // Method should be choose based on Java type
J result = Connection.// get value of current tenant by invoking get_current_tenant(T arg)
Assert.assertEquals(expectedTenant, result);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions