Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dto中如何扁平化使用复合字段 #402

Closed
llh4github opened this issue Jan 23, 2024 · 2 comments
Closed

dto中如何扁平化使用复合字段 #402

llh4github opened this issue Jan 23, 2024 · 2 comments
Labels
pending Postpone plans because of more important tasks

Comments

@llh4github
Copy link

如官网文档中的例子:

@Embeddable
interface FullName {

    val firstName: String
    
    val lastName: String
}
@Entity
interface Author {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    val id: Long

    val name: FullName
}
  1. 对于输出的View,如何指定复合字段中的任意子字段?flat函数只能作用于关联关系属性。
  2. 对于输入的Input,如何在dto文件中对复合字段的子字段作设置?如添加验证注解。
  3. 对于specification ,目前只支持复合字段的eq,无法对其子字段单独设置QBE函数
@babyfish-ct
Copy link
Owner

是的, flat目前仅支持关联,这个问题是有限时间下的优先级安排导致的,需等待一些时日

@babyfish-ct babyfish-ct added the pending Postpone plans because of more important tasks label Feb 7, 2024
@babyfish-ct
Copy link
Owner

不知不觉中,早已解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending Postpone plans because of more important tasks
Projects
None yet
Development

No branches or pull requests

2 participants