I have some domain object in my webapp named of Site. Site would be contains list of IP addresses, that is
@Entity
class Site {
...
@ManyToMany(fetch=FetchType.LAZY)
public Set<String> ips= new HashSet<String>();
...
}
But hibernate is down when I try to start webapp with error:
Caused by: org.hibernate.AnnotationException: Use of @OneToMany or @ManyToMany targeting an unmapped class: my.webapp.Site.ips[java.lang.String]
What's the problem?