You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Henno Vermeulen <he...@huizemolenaar.nl> on 2012/11/20 16:47:21 UTC
create index on unidirectional OneToMany
Is it possible to create an index on a unidirectional OneToMany relation? There is no column on the related entity to put @Index on. I tried @KeyIndex and @ElementIndex but they don't work either.
e.g.
My use case (simplified)
@Entity
class Order {
@OneToMany
@JoinColumn
List<OrderLine> orderlines;
OrderLine has no reference to Order.