m2o m2o - 4 months ago 27
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

@Transient complies with your needs.