openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daryl Stultz <da...@6degrees.com>
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 <
srinivasan.krish@live.com> 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.
http://www.6degrees.com
mailto:daryl@6degrees.com

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