Skip to content

Conversation

@GoodforGod
Copy link
Contributor

Database macros support for @Column type use and method argument parameter mapping

Added database macros support for @Column type use and method argument parameter mapping

            public interface AbstractJdbcRepository<K, V> extends JdbcRepository {

                @Query("SELECT %{return#selects} FROM %{return#table} WHERE %{keyArg#where}")
                @Nullable
                V findById(K keyArg);
            }

            @Repository
            public interface TestRepository extends AbstractJdbcRepository<@Column("id") String, TestRepository.Entity> {
            
                @Table("entities")
                record Entity(@Id String id, @Column("value1") int field1, String value2, @Nullable String value3) {}
            }

@GoodforGod GoodforGod added this to the v2.0.0 milestone Aug 14, 2025
@GoodforGod GoodforGod added improvement Improvements to existing features module: database Related to Databases module labels Aug 14, 2025
@github-actions
Copy link

github-actions bot commented Aug 14, 2025

Test Results

886 tests   882 ✅  9m 46s ⏱️
108 suites    4 💤
108 files      0 ❌

Results for commit fa92947.

♻️ This comment has been updated with latest results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improvements to existing features module: database Related to Databases module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant