Title: jboss 3.0.5 ejbql compiler problems?

My eqbql

SELECT OBJECT(c) FROM StoreCategory c WHERE c.customer IS NULL AND c.partnerOwner IS NULL

in jboss 3.0.5 compiles to

SELECT t0_c.id FROM storecategory t0_c WHERE (t0_c.customer IS NULL AND t0_c.partnerOwner IS NULL) AND (t0_c.partnerOwner=t0_c.id)

which is nonsense (what "t0_c.partnerOwner=t0_c.id" is up to?), and in jboss 3.0.4 compiles to

SELECT t0_c.id FROM storecategory t0_c WHERE t0_c.customer IS NULL AND t0_c.partnerOwner IS NULL

which is OK

c.customer and c.partnerOwner are one-to-many CMRs (one Customer - many StoreCategories, one PartnerOwner - many StoreCategories).

Why is it so?

Reply via email to