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

实体类中某个字段不加注解新增修改时依然会报该字段不存在 #91

Closed
MarkusMxd opened this issue Nov 20, 2023 · 2 comments

Comments

@MarkusMxd
Copy link

之前我们可以用@transient注解来声明,现在我想在实体类中添加个别非表中字段,查看文档说什么都不加就可以,但是依然报错,尝试将该字段上面加注解@Entity.Column(selectable=false,updatable = false,insertable = false),莫非只能这样??看是否需要调整

@abel533
Copy link
Contributor

abel533 commented Nov 20, 2023

使用 @Entity.Transient 可以排除,添加jpa模块的情况下也可以使用JPA的注解。

@abel533
Copy link
Contributor

abel533 commented May 20, 2024

@abel533 abel533 closed this as completed May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants