The query

select p from myapp.myobject

sometimes returns more than 1 values of each object if it as more than 1
dependent object.

I tried to call the sql query generated by castor and I found this result (I
report only primary keys wich in my case are integers).

ID
1
1
1
2
2
3
4
4
4
3
3
2


I found that the resulting enumeration of object has obects with id = 3 and
2 duplicated.

So I tried the query

select p from myapp.myobject order by p.id

and it works fine.

Francesco Marsoni

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to