I was trying some hands on with Hibernate annotations. When I tried to use Cascading then I get two options in the Eclipse intellisense :
javax.persistence.CascadeType and org.hibernate.annotations.CascadeType
In hibernate CascadeType, there are many options given than in JPA’s one.
Is there any advantage of one over another?
The javax.persistence annotations are a standards specification. The hibernate annotations represent Hibernate’s specific implementation. They mostly overlap, but the Hibernate CascadeType provides some additional options specific to Hibernate.
Generally, use the javax.persistence annotations whenever possible. Use the Hibernate variant only if you need one of the options specific to Hibernate and know that you likely never need to switch to another persistence provider.
Many people mix the JPA/Hibernate annotations within the same project which is a valid thing to do. However, there can be subtle interactions like this one involving CascadeType:
http://www.mkyong.com/hibernate/cascade-jpa-hibernate-annotation-common-mistake/