[Teneo] How to set 'cascade="none"' on many-to-one reference in Hibernate [message #70527] |
Tue, 06 February 2007 00:39  |
Eclipse User |
|
|
|
Originally posted by: Stephen.Egan.csiro.au
Hi,
I have some Ereferences in my model that I don't want to be persisted by=
=
reachability (i.e. cascade=3D"none"). Teneo maps these as a many-to-one=
=
relationship. The CascadeType enum doesn't have a literal "NONE" or an =
=
equivalent, so I am at a loss as to how to indicate this through an =
Eannotation. Any ideas?
//Stephen
|
|
|
|
Re: [Teneo] How to set 'cascade="none"' on many-to-one reference in Hibernate [message #70696 is a reply to message #70546] |
Tue, 06 February 2007 22:47  |
Eclipse User |
|
|
|
Originally posted by: Stephen.Egan.csiro.au
Hi Martin,
Thanks again for your speedy reponse. I've given your suggestion a try =
on =
release I200702051530, with no luck. I've raised bug number 173225 to =
address the issue.
Thanks,
Stephen
On Tue, 06 Feb 2007 19:41:48 +1100, Martin Taal <mtaal@elver.org> wrote:=
> Hi Stephen,
> Can you try @ManyToOne(cascade=3D{})? I have not tested this so if it =
does =
> not work can you enter a bugzilla for it?
>
> gr. Martin
>
> Stephen Egan wrote:
>> Hi,
>> I have some Ereferences in my model that I don't want to be persisted=
=
>> by reachability (i.e. cascade=3D"none"). Teneo maps these as a =
>> many-to-one relationship. The CascadeType enum doesn't have a litera=
l =
>> "NONE" or an equivalent, so I am at a loss as to how to indicate this=
=
>> through an Eannotation. Any ideas?
>> //Stephen
>
>
-- =
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
|
|
|
Re: [Teneo] How to set 'cascade="none"' on many-to-one reference in Hibernate [message #602210 is a reply to message #70527] |
Tue, 06 February 2007 03:41  |
Eclipse User |
|
|
|
Hi Stephen,
Can you try @ManyToOne(cascade={})? I have not tested this so if it does not work can you enter a
bugzilla for it?
gr. Martin
Stephen Egan wrote:
> Hi,
> I have some Ereferences in my model that I don't want to be persisted by
> reachability (i.e. cascade="none"). Teneo maps these as a many-to-one
> relationship. The CascadeType enum doesn't have a literal "NONE" or an
> equivalent, so I am at a loss as to how to indicate this through an
> Eannotation. Any ideas?
>
> //Stephen
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: [Teneo] How to set 'cascade="none"' on many-to-one reference in Hibernate [message #602265 is a reply to message #70546] |
Tue, 06 February 2007 22:47  |
Eclipse User |
|
|
|
Originally posted by: Stephen.Egan.csiro.au
Hi Martin,
Thanks again for your speedy reponse. I've given your suggestion a try =
on =
release I200702051530, with no luck. I've raised bug number 173225 to =
address the issue.
Thanks,
Stephen
On Tue, 06 Feb 2007 19:41:48 +1100, Martin Taal <mtaal@elver.org> wrote:=
> Hi Stephen,
> Can you try @ManyToOne(cascade=3D{})? I have not tested this so if it =
does =
> not work can you enter a bugzilla for it?
>
> gr. Martin
>
> Stephen Egan wrote:
>> Hi,
>> I have some Ereferences in my model that I don't want to be persisted=
=
>> by reachability (i.e. cascade=3D"none"). Teneo maps these as a =
>> many-to-one relationship. The CascadeType enum doesn't have a litera=
l =
>> "NONE" or an equivalent, so I am at a loss as to how to indicate this=
=
>> through an Eannotation. Any ideas?
>> //Stephen
>
>
-- =
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
|
|
|
Powered by
FUDForum. Page generated in 0.34981 seconds