new to jpa. if I have a table CUSTOMER (NAME, ADDRESS, PHONE) and I have a list of <Customer> object which has the values for these 3 columns. What's the easiest way to insert the List inot table ?
This is one way to insert but it's not inserting at once.
you may try batching for insertion by adding below lines in application.properties file
spring.jpa.properties.hibernate.jdbc.batch_size=25
spring.jpa.properties.hibernate.order_inserts=true
brevity is the soul of wit - shakepeare. Tiny ad:
SKIP - a book about connecting industrious people with elderly land owners