Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] How to set 'cascade="none"' on many-to-one reference in Hibernate
[Teneo] How to set 'cascade="none"' on many-to-one reference in Hibernate [message #70527] Tue, 06 February 2007 05:39 Go to next message
Eclipse UserFriend
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 #70546 is a reply to message #70527] Tue, 06 February 2007 08:41 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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 #70696 is a reply to message #70546] Wed, 07 February 2007 03:47 Go to previous message
Eclipse UserFriend
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 08:41 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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] Wed, 07 February 2007 03:47 Go to previous message
Eclipse UserFriend
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/
Previous Topic:[teneo] bidirectional OneToOne containment association - container not set in child object
Next Topic:Teneo and java.util.Calendar
Goto Forum:
  


Current Time: Fri Oct 30 20:37:29 GMT 2020

Powered by FUDForum. Page generated in 0.02069 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top