Use @PostConstruct for JpaEntity

Viewed 20

Is it correct in the JPA Entity entity to use the @PostConstruct annotation method to fill in the default values of fields when creating an object in the database? And what problems can there be in the future?

0 Answers
Related