When I do an executeUpdate on this SQL query in Hibernate 3.5:
Query insert = session.createSQLQuery(
"INSERT INTO unmapped_table_1 (column_name) "
+ "SELECT column_name "
+ "FROM source_table;");
insert.executeUpdate();
Hibernate returns the number of entries but does not insert the entries. When I do the query directly on the MySQL Server, the entries do get inserted.
hibernate.show_sql=true, what is the log output for query execution?select columns into unmapped_table_1 from source_table. ?