This is not really a hibernate issue, per se, but is of interest to the hibernate community, so I'm posting here.
I get a compile error (symbol not found) when I list the full class name of multiple Hibernate CascadeTypes
Code:
@ManyToMany(fetch=FetchType.LAZY, targetEntity=com.acme.Item.class)
@Cascade({org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
@JoinTable(name="listing_has_items",
joinColumns={@JoinColumn(name="list_guid")},
inverseJoinColumns={@JoinColumn(name="item_guid")})
but when I import CascadeType and use the short class name it complies fine. Seems like a java quirk since a fully-qualified class name should always work -- are others having this issue?