users@glassfish.java.net

Re: getSingleResult behaves different in GlassFishV1 and V2?

From: <glassfish_at_javadesktop.org>
Date: Thu, 18 Oct 2007 08:39:33 PDT

i will try the distinct keyword to fix this:

This is the result of multiple rows being returned because of the Join.

V1 and V2 Both returned multiple instances of the "Usuarios" class with the same properties.

However while V1 doesn't throw an Exception V2 does.

V1 simply returns the first row when you do a getSingleResult.

I really think this does not speack well for TopLink about backward compatibility, things that used to work well in V1 should keep working well in V2, at the very minimum they should not raize an exception!.

how many more of this issues are out there?... this means that upgrading to V2 brings the risk that your application stops working, which means that every application should now have a GlassFishV1 version and GlassFishV2 version..

What is this?.. Microsoft?...
[Message sent by forum member 'tololo' (tololo)]

http://forums.java.net/jive/thread.jspa?messageID=240966