开发者

Can I create an attribute without relation with DB Table in a Entity?

开发者 https://www.devze.com 2023-02-19 04:31 出处:网络
Can I create an attribute without relation with DB Table in a 开发者_Go百科Entity ? If it can, which annotation should I use ?Attributes that are part of a persistent entity but not intended to be pe

Can I create an attribute without relation with DB Table in a 开发者_Go百科Entity ?

If it can, which annotation should I use ?


Attributes that are part of a persistent entity but not intended to be persistent can either be modified with the transient modifier in Java or be annotated with the @Transient annotation.

0

精彩评论

暂无评论...
验证码 换一张
取 消