I need to handle prePersist and preUpdate methods for a table created automatically by JPA in a @ManyToMany ralation in a @joinTable. This table does not have an entity and I thought it would use the prePersist trigger of its counterpart table but I was not the case. The only think I can imagine is to split the @ManyToMany in two @ManytoOne and creating an @Entity to map this join-table table. Unfortunally this process is painful and I would let this be a last resort.
I am using Eclipselink as a JPA provider.