We are developing an application in spring boot, where we will be creating and publishing dynamic forms into our application at runtime to post the form-data into the db (MySql) in JSON format. We want to create a generic api to handle CRUD operations for all dynamic forms.
We know about the php code-igniter framework query builder, which is capable to build and execute the queries.
https://www.codeigniter.com/userguide3/database/query_builder.html#inserting-data
For example :
$query = $this->db->get('mytable'); // Produces: SELECT * FROM mytable
$data = array(
'title' => 'My title',
'name' => 'My Name',
'date' => 'My date'
); $this->db->insert('mytable', $data);
Is there any way (any plugin or maven dependency) to do the same (as php code-igniter) in java spring boot.
Map<String, String> map = new TreeMap<>();
map.put("name","User Name");
map.put("dob", "30-3-1995");
map.put("address", "Address Line");
map.put("city", "Jaipur");
/* insert into user table */
db.insert("user",map);