Add new rows 

Only Entities are allowed to be inserted.

Basically there are two ways to insert an entity.

First is by using QueryTarget method insert.

If your entity has a PrimaryKey, you are allowed to invoke entity method to insert:

Take a look into execute() method.

If you use execute() without any parameter, Daobab executes insert into independent transaction.

Use execute(boolean transaction) if you want to use independent transaction as above (true) or you have already opened transaction and you want to do it without transaction (false)

Method execute(Propagation propagation) if you want to handle transaction propagation. Take a look into Transaction page for details.

© Copyright 2018-2023 Elephant Software Klaudiusz Wojtkowiak