-
1. Re: OneToMany association with Set
adamw Oct 20, 2008 3:53 PM (in response to abhijeetkasale)Hello,
and how can your mappedBy contain a dot in it? It should be a name of a property (for example "target"). I think this may be the cause.
Also, then using @OneToMany, you don't have to use @VersionsJoinTable. It will work without it.
@VersionsJoinTable is just needed for the special case when you use @OneToMany and @JointTable.
--
Adam -
2. Re: OneToMany association with Set
abhijeetkasale Oct 21, 2008 12:54 AM (in response to abhijeetkasale)Hi Adam,
ProductwiseTarget is a association class between product and target objects (many to many). It contains an embeddable object ProductwiseTargetPK, that's why the mapped by in Target contains a dot.
Moreover, the target class is a superclass in my case, using Joined inheritance. Is it supported by enverse?
What should I do in this case? -
3. Re: OneToMany association with Set
adamw Oct 21, 2008 1:30 PM (in response to abhijeetkasale)Ah ... so you have a relation inside a component?
Unfortunately that's not supported yet (it's not part of standard JPA mappings). Also, joined inheritance isn't yet supported, only the single-table inheritance.
--
Adam