title: unidirectional @oneToMany without joinTable in openJpa 2
body: <p>I am trying to create a unidirectional OneToMany mapping in <strong>openJpa 2.3.0</strong>, but i would also want to define the column name that will hold the foreighn key on the source table. As far as i know in JPA 2.0 this can be done as follows :</p>
  
  <pre><code>@Entity
  public class Source {
  
  
      private List&lt;Target&gt; targets = new ArrayList&lt;&gt;();
  
  
      @OneToMany
      @JoinColumn(name="SOURCE_FK")
      public List&lt;Target&gt; getTargets() {
          return targets;
      }
  }
  </code></pre>
  
  <p>But i get the following exception :</p>
  
  <pre><code> &lt;openjpa-2.3.0-r422266:1540826 fatal user error&gt; org.apache.openjpa.persistence.ArgumentException: You have supplied columns for "Source.targets", but this mapping cannot have columns in this context.
  at org.apache.openjpa.jdbc.meta.MappingInfo.assertNoSchemaComponents(MappingInfo.java:382)
  at org.apache.openjpa.jdbc.meta.strats.RelationToManyTableFieldStrategy.map(RelationToManyTableFieldStrategy.java:97)
  at org.apache.openjpa.jdbc.meta.strats.RelationCollectionTableFieldStrategy.map(RelationCollectionTableFieldStrategy.java:94)
  at org.apache.openjpa.jdbc.meta.FieldMapping.setStrategy(FieldMapping.java:146)
  at org.apache.openjpa.jdbc.meta.RuntimeStrategyInstaller.installStrategy(RuntimeStrategyInstaller.java:82)
  at org.apache.openjpa.jdbc.meta.FieldMapping.resolveMapping(FieldMapping.java:496)
  at org.apache.openjpa.jdbc.meta.FieldMapping.resolve(FieldMapping.java:461)
  at org.apache.openjpa.jdbc.meta.ClassMapping.resolveMapping(ClassMapping.java:854)
  at org.apache.openjpa.meta.ClassMetaData.resolve(ClassMetaData.java:1811)
  at org.apache.openjpa.meta.MetaDataRepository.processBuffer(MetaDataRepository.java:829)
  at org.apache.openjpa.meta.MetaDataRepository.resolveMapping(MetaDataRepository.java:784)
  at org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepository.java:664)
  at org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:418)
  at org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:389)
  at org.apache.openjpa.kernel.BrokerImpl.persistInternal(BrokerImpl.java:2666)
  at org.apache.openjpa.kernel.BrokerImpl.persist(BrokerImpl.java:2604)
  at org.apache.openjpa.kernel.BrokerImpl.persist(BrokerImpl.java:2587)
  at org.apache.openjpa.kernel.BrokerImpl.persist(BrokerImpl.java:2491)
  at org.apache.openjpa.kernel.DelegatingBroker.persist(DelegatingBroker.java:1077)
  at org.apache.openjpa.persistence.EntityManagerImpl.persist(EntityManagerImpl.java:716)
  at 
  </code></pre>
  
  <p>It seems that openJpa 2.3.0 does not support the Joincolumn in unidirectional oneToMany. Is this true or am I missing something? If this is the case , is there a workaround without using join tables ?</p>