Also the same argument can be made for the owning side of a one-to-one or many-to-one relation: What if the database join column contains a value which causes hibernate to use a proxy, but there is no FK and therefore no referential integrity in the database. Technically hibernate would have to query the other table to see whether a row for that FK value exists, but that would be very inefficient and for that reason hibernate still uses a proxy. |