i experienced some strange behaviour with finder methods:

i made an entity bean with a findByField(intfield) method and a findAll()
method.

i then deployed it to sqlserver 2000

then i started the sql profiler so i could see what sql was thrown at the
database.
when i call the findByField method it generates a single sql statement with
a where clause as expected, but when i call the findAll() method i generated
one select statement for each row in the table.

in the orion-ejb-jar.xml the finders look excactly alike except that the
query attribute of findAll() is empty.
how come it doesn't make one sql statement when i call findAll()?

sincerely
morten wilken

Reply via email to