What is the easiest way to ignore a JPA field during persistence?

m2o picture m2o · Aug 15, 2009 · Viewed 195.1k times · Source

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

cletus picture cletus · Aug 15, 2009

@Transient complies with your needs.