[EMAIL PROTECTED] wrote:
Is there specific annotation to tell hibernate to use "LEFT JOIN" relation ?
I don't understand your question, as a relationship is amongst data. "Left join" is a term talking about the structure of a query to retrieve data.
I've tried @JoinColumn(name = "OtherId", nullable=true) but does not work and keep giving "object references an unsaved transient instance - save the transient instance before flushing" error when I tried to save object with null "OtherId".
and the rest of your question has neither to do with the relationship, nor the query used to fetch the data, but with cascading problems when saving inconsistent data.
I think if you clarify your question you may find you already have the answer.
-Dale --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
