Hello Ali Dinc, 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. |