java 是否有方法将超过22个参数传递给JOOQ记录?我有一个需要超过22个字段的列[关闭]

utugiqy6  于 2023-08-01  发布在  Java
关注(0)|答案(1)|浏览(112)

已关闭,此问题需要details or clarity。它目前不接受回答。
**希望改进此问题?**通过editing this post添加详细信息并澄清问题。

昨天关门了。
Improve this question
有没有办法把result1和result2都加起来?我尝试在MockDataProvider中编写一个测试,并尝试返回result1和result2的MockResult

Result<Record22<Long, String, String, String, LocalDateTime, String, LocalDateTime, Long, Long,
                    Long, String, LocalDateTime, String, LocalDateTime,
                    Long, Boolean, String, String, JSON, Integer, String, String>> result1 = create.newResult(
                   something2

            );

            result1.add(create
                    .newRecord(
                            result1.fields
                    )
                    .values(1234567890L, "test", "testCode", "testUser", LocalDateTime.now(), "testUpdate", LocalDateTime.now(),
                            1111111L,1L,1234567890L, "availableCreatedBy",LocalDateTime.now(),"availableUpdatedBy",LocalDateTime.now(),
                            1111111L, true,"testScope","testType", JSON.valueOf("{test : 'New'}"),1,"description","Name"));

            Result<Record8<Integer, String, LocalDateTime, String, String, LocalDateTime, Long, Long>> result2 = create.newResult(
                  something2

            );
            result2.add(create.newRecord(
                    result2.fields
            ).values(
                    2,"testcreateBy",LocalDateTime.now(),"sample","updateBy",LocalDateTime.now(),1L,2L
            ));

字符串

qcuzuvrc

qcuzuvrc1#

你可以使用下面的命令。
result1.addAll(result2);希望这能解决你的问题。

相关问题