i have a entity named Location which contains a cmp-field named 'description' (maps to a String)
defined in said entity, is a custom finder 'findAllDescriptions(Integer pk)' with the ejbql defined as:
SELECT l.description FROM Location AS l
-- as expected it returns a collection
what i did not expect however is that the objects referenced by the collection are not String classes but proxy classes. calling a .toString() on these objects returns output similar to:
local/Location:String data held in description field
am i incorrect is assuming that jboss will return a collection based on the class used by the cmp-field or is this a bug?
thanks in advance!
ejbql should be read as:
SELECT l.description FROM Location AS l WHERE l.id = ?1
(the finder /does/ return successfuly for the debugging-anal-retentive)