I need to fill a table with large amount of data so I don't want to find related objects, but just put numeric values of them. For this I'd build a simple query ie:
INSERT INTO article_category (article_id, category_id) VALUES (2,12);
anyway can't find a way to do this with Ebean, I was trying:
RawSql rawSql = RawSqlBuilder
.parse("INSERT INTO article_category (article_id, category_id) VALUES (2,12)")
.create();
however that throws an exception:
[RuntimeException: Error parsing sql, can not find SELECT keyword in:INSERT INTO article_category (article_id, category_id) VALUES (2,12)]
How can I call really raw query with Ebean ?