This "strange" behaviour is documented and you can tune it as you wish. See on-line docs.
i had the same problem, by using jboss 3.2.5 the sql statements looks a bit better. but i have still a problem, every getMethod make one SQL-query. if you have a solution, please tell me. maybe these threads help you:
Try running your code inside a transaction.