This is a followup question to:
Is @ManyToMany(mappedBy = ... ) + @OrderColumn supported by the JPA?
I'm referring to the @OrderColumn
Java docs:
http://docs.oracle.com/javaee/6/api/javax/persistence/OrderColumn.html
The text there is the same as what the JPA 2 spec writes in section 11.1.39 OrderColumn Annotation.
What does the part "the order column is not visible as part of the state of the entity" mean exactly? There's a lot of room for interpretation on that.
Does that mean the order column must not be part of any FKs and/or PKs defined? Or only not in FKs (PK allowed)? What does the state of an entity comprise? AFAIK the JPA spec doesn't define that.
Thanks