Hello,
I was thinking if I could set the list elements type in hibernate mapping files.
So far I found this collection-type attribute like here:
<list name="privileges" cascade="all" table="user_privilege" collection-type="">
, but I am not sure if I put my list element full class name if Hibernate will generate my domain classes properly.
Is there another way of doing this or I have to manually set types of my Lists in my classes like here:
Generated by Hibernate:
private List privileges = new ArrayList(0);
Manually changed:
private List<UserPrivilege> privileges = new ArrayList(0);
Thanks.