I'm trying to map a list of String using Hibernate XML mapping files. My class is the following:
public class Historic {
private String id;
private String resolution;
private List<String> names;
private List<Score> scores;
private String base;
private List<Grade> grades;
}
I read in the documentation that I should be using the <element> tag, but I don't know how I'm going to reference the specific attributes from the Historic class.
I think that it could be something like:
<class name="Historic" table="HISTORIC">
<id name="id" column="id">
<generator class="native" />
</id>
<property name="resolution" type="string" column="resolution" />
<element
name="names"
column="names"
type="string"
/>
...
</class>
Is that right?