openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daryl Stultz <>
Subject Re: Maintaining foreign key relation in Unidirectional ManyToOne
Date Thu, 15 Oct 2009 12:04:40 GMT
On Wed, Oct 14, 2009 at 11:12 PM, Srinivasan Krishnamoorthy <> wrote:

> Hi Daryl,
>  Thanks for the immediate response.. I have one question..
> If I use database cascade to do this, will it throw the cache out
> of sync, If I had cached students? I was thinking how will JPA
> know that these students are now deleted.

That's an excellent question. I'm not using the L2 cache. I don't think
using only a DB cascade is the right way to go - just an alternative to the
others. Why not add the relation to College?

Daryl Stultz
6 Degrees Software and Consulting, Inc.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message