-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: Unsupported cascade style: remove with Annotations 3.0 Beta1
PostPosted: Fri Apr 08, 2005 2:16 am 
Beginner
Beginner

Joined: Mon Dec 15, 2003 5:25 am
Posts: 48
Location: Delhi, India
After upgrading to Annotations 3.0 Preview beta 1, I am getting following error-

Code:
Initial SessionFactory creation failed.
org.hibernate.MappingException: Unsupported cascade style: remove
   at org.hibernate.engine.Cascades.getCascadeStyle(Cascades.java:961)
   at org.hibernate.mapping.Property.getCascadeStyle(Property.java:92)
   at org.hibernate.tuple.PropertyFactory.buildStandardProperty(PropertyFactory.java:115)
   at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:146)
   at org.hibernate.persister.entity.BasicEntityPersister.<init>(BasicEntityPersister.java:400)
   at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:104)
   at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
   at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:199)
   at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)


While it was running successfully with Annotations 3.0alpha3.

Why cascade style REMOVE is unsupported now?

Thanks,

_________________
Vinod K. Singh


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 08, 2005 3:45 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
I have never heard of a "remove" cascade style.

Code and doc only contains create, merge, save-update, delete, lock, refresh, evict, replicate.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 08, 2005 4:04 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
This is my fault. I made a stupid 1-line code error :-(
I'll fix it and add unit tests. As a workaround use ALL.
Sorry about that.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 08, 2005 4:24 am 
Beginner
Beginner

Joined: Mon Dec 15, 2003 5:25 am
Posts: 48
Location: Delhi, India
Thanks,

_________________
Vinod K. Singh


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 12, 2005 10:59 am 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
Can you tell me if CascadeType.REMOVE will be supported in the next version of Hibernate Annotations? At the moment, I don't want to use CascadeType.ALL because I've been having problems with extra rows being inserted in addition to rows that should have only been updated. I'm not sure if that problem has something to do with my code or not.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 13, 2005 4:23 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Yes it works in CVS

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.