> I've looked at the code and it looks correct to me and tried various > things like making the inverse LAZY. But it always generating the > extraneous join. I've attached the entity source code. > > The relationship causing problem is > > @ManyToOne > @JoinColumn(name="ACCOUNT_ACCOUNTID") > private Accountejb2 account2; ManyToOne is eager by default, so right now both sides are eager. _______________________________________________________________________ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.