我尝试使用jdbi 3收集存储在连接表中的复合对象。实体event 1 -> n author是数据结构的一个示例。它们通过事件中保存在列中的author_id连接。 它们很容易通过join查询,但我不能使用jdbi中给定的注释创建对象。你能告诉我我在使用jdbi时的错误,给我一个用jdbi处理“复杂”对象的机会吗? DAO的代码 @SqlQuery("SELECT e.id as e_id, e.name as e_name, e.start_time as e_start_time, e.lastupdated as e_lastupdated, a.id as a
在DAO接口中使用JDBi3查询映射检索到的数据时,我遇到了问题。// empty constructor + constructor with all fields excluding List + getters + setters...and,因为我使用JDBi3我在Stackoverflow、官方的JDBi3文档API和Google组上发现了许多问题,它们正在考虑一对多的关系,并使用包含类的@UseRowReducer注释来影响LinkedHashMapRowReducer