we went into a problem during our migration from Glassfish v2 to Glassfish v3. There are two entities (lets call them A and B) with an optional dependency (no matter if @OneToOne or @ManyToOne) between them.
We defined now a query like:
"SELECT b.id, a.id FROM B b LEFT JOIN b.refToA a"
For not defined references we get the value 0 for the second id. We expected null and got this values already with Glassfish v2. Do we use it in the wrong way or is this a bug in EclipseLink?
You can find a failing example of this problem on github.com in the user profile "bitsunited" and the project is called "leftjointest".