please read the hibernate documentation on the @cascade annotation here:
http://docs.jboss.org/hibernate/stable/annotations/reference/en/html_single/#entity-hibspec-cascade
On Jul 13, 2009, at 3:49 PM, Reza Farshi wrote:
Hi , thanks for your answer,
your suggested link , is unclear,
I exactly want to know what is the appropriate annotations must be
applied to each side, can u help?
thanks
On Mon, Jul 13, 2009 at 5:27 PM, Oscar Alvarez <oialva...@gmail.com>
wrote:
Hi.
Look at this,
http://www.coderanch.com/t/216578/Object-Relational-Mapping/java/Hibernate-cascade-deletion-many-many
HTH
2009/7/13 Reza Farshi <reza.far...@gmail.com>
Hi group,
in AppFuse there is a unidirectional Many-to-Many relation between
User and role, so deleting a user consequences deleting a row from
user and corresponding rows form user_role table,
but I also need deleting role to be cascaded , I mean when I
delete a role , corresponding roles form user_role table to be
deleted too .
what is appropriate annotations must be applied?
thanks. --Reza
--
Atentamente
Óscar Álvarez Vielma
(09) 8416 4052
--
برای امنیت بیشتر، آدرس فرستندگان
پیشین را حذف کنید.
ضمنا آدرس گیرندگان جدید را در خط
Bcc
ثبت کنید.
این پیام را در ابتدای همهی
ایمیلهای فورواردی بگذارید
Nils M. Petersohn
snackycracky.wordpress.com
xing.com/profile/Nils_Petersohn
myspace.com/electrash
twitter.com/snackycracky
facebook.com/nils.petersohn
n...@schoenhouse.de
0049 (0)177 6311074
skype: nilz_berlin
icq: 99510895
Ebertystr. 47
10249 Berlin