Marco Belladelli (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=637b480...
) *commented* on HHH-16300 (
https://hibernate.atlassian.net/browse/HHH-16300?atlOrigin=eyJpIjoiMWMyNT...
)
Re: PrePersist not executed with ManyToMany Jointable nested entity (
https://hibernate.atlassian.net/browse/HHH-16300?atlOrigin=eyJpIjoiMWMyNT...
)
Hello Ali Dinc (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=6274b7c...
) , and thanks for reporting the issue. The @PrePersist annotation gets processed when
persisting the Entity it is defined on. In your case, the entity FooBar maps to the same
table that is used as an association table between Foo and Bar , but the method will not
get executed when persisting the association - it will only be processed when saving a
FooBar entity.
(
https://hibernate.atlassian.net/browse/HHH-16300#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16300#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100218- sha1:518c67a )