I get
net.sf.hibernate.MappingException: Repeated column in mapping for collection: co
m.studentuniverse.farefilter.persistent.Fares.priceCostCalc column: prcolo_id
at net.sf.hibernate.collection.CollectionPersister.checkColumnDuplicatio
n(CollectionPersister.java:838)
for the following mapping. Is there a way to let it use a column for more than one entry (or did I miss what the real problem is?)
Code:
<many-to-one
name="priceCostLookup"
class="PriceCostLookup"
cascade="none"
outer-join="auto"
update="false"
insert="false"
column="prcolo_id"
/>
<set
name="priceCostCalc"
table="price_cost"
lazy="false"
inverse="false"
cascade="none"
sort="unsorted"
order-by="prcolo_id,pricos_calc_order"
>
<key column="prcolo_id"/>
<many-to-many class="PriceCost" column="prcolo_id"/>
</set>