m2o m2o - 1 year ago 107
Java Question

JPA fastest way to ignore a field during persistence?

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?

Answer Source

@Transient complies with your needs.