if you annotate a class as @Versioned, all properties will be versioned, including collections.
And yes, you can use @Unversioned to explicitly not version.
Thanks; going back to @OneToMany not supported - does this restriction apply even if you use a @JoinTable?
Given the following attribute, I am getting errors on flush when adding/removing items from this bag. I thought if I used @JoinTable then I would be okay.
@OneToMany(fetch=FetchType.LAZY, cascade=CascadeType.ALL) @JoinTable(name="EM_MAP_EVENTS_REGIONS_AV", joinColumns=@JoinColumn(name="EVENT_ID"), inverseJoinColumns=@JoinColumn(name="REGION_AV_ID")) private List<AdminValue> regions;
AdminValue (object) is also @Versioned.
What do you think? Thanks.
@OneToMany is not supported only in the case of bags.
What errors are you getting exactly?
Also, you shouldn't see problems during configuration, only when trying to add a duplicate item.