m2o m2o - 2 months ago 16
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.

Comments