0 Replies Latest reply on Jul 19, 2006 8:54 AM by Qba C

    I need to set batch size in EJB3.0 application

    Qba C Newbie


      As I wrote in topic, I need to set batch size in my simple application, that gets all rows from one, unrelated table from a database.

      Here's my entity bean:

      public class EJBTestEntity implements Serializable {
       @GeneratedValue(strategy = GenerationType.AUTO)
       private int id;
       private String imie;
       private String nazwisko;
       private int rocznik;

      As I trace session in database, I get that it is fetching the data in 15-element packs. The same information the JBoss gives me "JDBC batch size: 15".

      Is there any method to change this size programmatically?