view raw
m2o m2o - 8 months ago 65
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.