[Teneo] How to set 'cascade="none"' on many-to-one reference in Hibernate [message #70527] |
Tue, 06 February 2007 05: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] |
Wed, 07 February 2007 03: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 #602265 is a reply to message #70546] |
Wed, 07 February 2007 03: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.04064 seconds