christian wrote:
I need a URL.
Hmmm... not sure what you mean.
I've looked at both the "eg" getting started example for the 2.1 version and the 3.0 version and they are both the same in this regard.
Basically,
hibernate-2.1\eg\org\hibernate\auction\AuctionItem.hbm.xml contains the
<many-to-one name="successfulBid" outer-join="false"/> entry, and
hibernate-2.1\eg\org\hibernate\auction\AuctionItem.java has the
successfulBid component.
The example is driven by the Main class at
hibernate-2.1\eg\org\hibernate\auction\Main.java which has no references to
successfulBid, and there are no references to it in any other hibernate-mapping files.
So technically, the example produces an
auctionItem table with a
successfulBid column, and an index on
successfulBid for the foreign key reference to the
bid table, but the example does not interact with the column/component in a way that confirms the usage of the column/component in the example for those looking to understand its purpose, which is what makes it confusing.
HTH.
Thanks,
Dan