Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

[JPA] Refresh a @OneToMany association

173391Jun 12 2007 — edited Jul 16 2007

Hi,

What are the ways to refresh a one to many association?

I know I can refresh it by calling something like:

    entityManager.refresh(owningEntity);

But are there other ways? For example, can I refresh only the association without refreshing the owning entity?

Furthermore, can I set some property somewhere that would specify that I want to refresh every time the association is accessed by the program because I know that other applications are concurrently modifying the database and I need to see their changes?

Best regards,
Bisser

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 13 2007
Added on Jun 12 2007
8 comments
2,853 views