how can I declare an Insert Into in HQL
Hibernate
?, is it the same way as sql
?
This is my code, that I need to migrate to hibernate:
DECLARE @variable int
SET @variable = (SELECT variable from entity WHERE description LIKE ('%Small%'))
how can I declare an Insert Into in HQL
Hibernate
?, is it the same way as sql
?
This is my code, that I need to migrate to hibernate:
DECLARE @variable int
SET @variable = (SELECT variable from entity WHERE description LIKE ('%Small%'))
I solutioned the problem. I Just declare in the CONTROLLER an object and the save it. example:
//create an new object of the Entity and save using JPA
Example example = new Example() ;
example.setFuncion();
ExampleRepository.save(example);
//done