Hi,
I try to use EntityManager to
execute a SQL query (To do "
create table" and "
insert into").
I would like to do somthing like query.execute(), but I don't know how to do that.
See non working code below (My question isn't returning anything)
I would like to have a hint how to solve this.
Code:
Query query1 = entityManager.createQuery( "create table department_backup like department" );
List<String> dummyList = query1.getResultList();
Query query2 = entityManager.createQuery( "insert into department_backup select * from department" );