java - Auto fill a table after creation jpa -


I want to populate my generation from the table with the @enti class. I want to know that this is possible with JPA and how I can do it.

Unfortunately, in hibernate @ is generated annotations but JPA It does not have any and there is no alternative for it. You can also try to apply @ PrePersist annotations to continue your object before EntityManager .


Comments