JPA最快的方式在持久性期间忽略字段? [英] JPA fastest way to ignore a field during persistence?
本文介绍了JPA最快的方式在持久性期间忽略字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我本质上寻找一个@Ignore类型的注释,通过它我可以阻止特定的字段被持久化。如何实现?
I'm essentially looking for a "@Ignore" type annotation with which I can stop a particular field from being persisted. How can this be achieved?
推荐答案
@Transient
符合您的需求。
@Transient
complies with your needs.
这篇关于JPA最快的方式在持久性期间忽略字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文