babyfish-ct / jimmer

A revolutionary ORM framework for both java and kotlin.
Apache License 2.0
715 stars 72 forks source link

有关于 DTO specification 的一些疑问 #643

Closed zhengchalei closed 2 weeks ago

zhengchalei commented 2 weeks ago
BookView {
    id(authors) as authorIds   // List<Long> authorIds
}

input BookInput {
    id(authors) as authorIds   // List<Long> authorIds
}

specification BookSpecification {
    id(authors) as authorIds   // Long authorIds
}

从前两个 View 和 Input 来看, 都是符合直觉的, specification 来说, 有点突然, 这里应该也是和 View / Input 一样返回List 这里单独使用一个关键字, 来区分 Long / List 是不是更合适

babyfish-ct commented 2 weeks ago

Try 0.8.161

id is forbidden in specification, associatedIdEq must be used.