openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Srinivasan Krishnamoorthy <srinivasan.kr...@live.com>
Subject Maintaining foreign key relation in Unidirectional ManyToOne
Date Wed, 14 Oct 2009 14:24:44 GMT

Hi,
 I have a manyToOne relation which is unidirectional.
For example, say Student and College. Student has manyToOne relation with
college. But College do not have OneToMany with Student. 
Here, if I delete College, I want all the students belonging to it be
deleted.
Can you please let me know a way to do this with JPA?

Best Regards,
Srinivasan Krishnamoorthy.

-- 
View this message in context: http://n2.nabble.com/Maintaining-foreign-key-relation-in-Unidirectional-ManyToOne-tp3823080p3823080.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
View raw message