문제

I want to populate the table after his generation from the @Entity Class. I want to know if this is possible with JPA and how can I do it .

도움이 되었습니까?

해결책

Unfortunately, Hibernate has @Generated annotation but JPA doesn't have it and there is no alternative to it. You can also try to apply @PrePersist annotation before EntityManager persists your object.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top