I try:
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
protected List<URL> urlList;
But I get error:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'entityManagerFactory' defined in ServletContext resource
[/WEB-INF/servlet-context.xml]: Invocation of init method failed; nested
exception is org.hibernate.AnnotationException: Use of @OneToMany or
@ManyToMany targeting an unmapped class:
my.package.MyModel.urlList[java.net.URL]
I saw this answers, but I can't mapping list of URLs.