This content has been marked as final.
Show 3 replies
-
1. Re: Quick question; will @Versioned also version collection
adamw Dec 30, 2008 2:04 AM (in response to chris.simons)Hello,
if you annotate a class as @Versioned, all properties will be versioned, including collections.
And yes, you can use @Unversioned to explicitly not version.
--
Adam -
2. Re: Quick question; will @Versioned also version collection
chris.simons Dec 30, 2008 2:28 PM (in response to chris.simons)Adam,
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. -
3. Re: Quick question; will @Versioned also version collection
adamw Dec 31, 2008 7:40 AM (in response to chris.simons)@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.
--
Adam