Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Problem with LEFT JOIN and long field
Problem with LEFT JOIN and long field [message #831947] Thu, 29 March 2012 14:59 Go to next message
Tobias L is currently offline Tobias LFriend
Messages: 1
Registered: March 2012
Junior Member
Hi everyone,

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:

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 in the user profile "bitsunited" and the project is called "leftjointest".

Thanks for your help! Smile
Re: Problem with LEFT JOIN and long field [message #832828 is a reply to message #831947] Fri, 30 March 2012 16:32 Go to previous message
Chris Delahunt is currently offline Chris DelahuntFriend
Messages: 1296
Registered: July 2009
Senior Member
I'm not sure what might have changed in EclipseLink to cause this. Does the problem occur if you change the type in A for id from long to Long?

Best Regards,

[Updated on: Fri, 30 March 2012 18:30]

Report message to a moderator

Previous Topic:Too long identifiers for oracle
Next Topic:Expecting EntityExistsException but getting DatabaseException (possible bug?)
Goto Forum:

Current Time: Sat May 26 16:05:49 GMT 2018

Powered by FUDForum. Page generated in 0.02078 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top