Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » @PreUpdate on One of OneToMany?(@PreUpdate on One of OneToMany?)
@PreUpdate on One of OneToMany? [message #1473437] Fri, 14 November 2014 16:29
Mike Summers is currently offline Mike SummersFriend
Messages: 7
Registered: November 2014
Junior Member
Is there a way to force @PreUpdate to fire on the owner of a OneToMany list when the list is updated?

public class Bar{
  @OneToMany
  private List<Fu> fu = ArrayList<Fu>();

  public List<Fu> getFu(){
    return fu;
  }
}
...

someBar.getFu().add(someFu);



So far the @PreUpdate fires on Fu but nothing on Bar. Turning up logging shows that the only activity is on the fu table so maybe this isn't surprising.

Is there anyway to 'force' @PreUpdate to fire on Bar? Filtering numerous Fu updates to get a single Bar is a problem.

Thanks.
Previous Topic:x
Next Topic:Generated metamodel doesn't extend base metamodel from another jar
Goto Forum:
  


Current Time: Mon Mar 04 09:39:04 GMT 2024

Powered by FUDForum. Page generated in 0.02105 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top