Java – the easiest way to ignore a JPA field during persistence

databasehibernatejavajpa

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?

Best Answer

@Transient complies with your needs.