-->
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.  [ 4 posts ] 
Author Message
 Post subject: How to use Hibernate's Annotations extensions of EJB3
PostPosted: Wed Mar 08, 2006 1:39 am 
Newbie

Joined: Tue Jan 31, 2006 2:30 am
Posts: 12
I would like to use Hibernate's CascadeType enum instead of EJB3's but I get compile errors when I import from org.hibernate.annotations instead of javax.persistence. I want to use the DELETE_ORPHAN cascade type of hibernate.

Is there special way of using Hibernate's CascadeType instead of EJB3's CascadeType?

By the way, am using Hibernate 3.1 and
HibernateAnnotations 3.1 beta8

Thanks!

_________________
When all else fails - fresh tactics!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 10, 2006 12:23 pm 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
I believe that the usage for CascadeType in H3 is slightly different than the one from EJB3.

Check for correct usage.

I had no problems mixing the of them.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 12, 2006 4:52 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
you need to use @Cascade, org.hibernate.annotations.CascadeType cannot inherit javax.persistence.CascadeType

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 16, 2006 2:31 am 
Newbie

Joined: Tue Jan 31, 2006 2:30 am
Posts: 12
thanks, i got it working.

_________________
When all else fails - fresh tactics!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.