Check if edited entity is new

In Jmix 2.2 how can i check that the entity that is been editing is new? Is not persisted in terms of JPA.

Hi Panos.

You can use io.jmix.core.EntityStates#isNew.

Regards,
Ivan

1 Like