Here is I've jpa bulk , I have 2 User, and Site. One user have many site, so we have one to many here. I want to user and /link to user . Here is how code like, my to use bulk for Site .

User user = new User("John Doe");user.().add(new Site(".com", user));user.().add(new Site(".com", user)); tx = .();tx.();.(user);tx.();

But when I run this code (I'm as jpa ) I see sql :

:  into User (id, name)  (null, ?): call ():  into Site (id, url, )  (null, ?, ?): call ():  into Site (id, url, )  (null, ?, ?): call ()

So, I "real" bulk not or I am ?

Here is code for this , this is so you have only and run mvn to .

:

Ken Liu , I've Site id auto :

User user = new User("John Doe");user.().add(new Site(1, ".com", user));user.().add(new Site(2, ".com", user));.(.); tx = .();tx.();.(user);tx.();

Now I have line in :

: org..jdbc. - size: 2

It !