nordborg wrote:
That type of query can't be converted to HQL. You might try with session.createSQLQuery(). If that doesn't work either you'll have to use JDBC via session.doWork().
Hi
We considering DB migration may happen so we should stick with hibernate alone.
when i tried with the following query :
session.createSQLQuery("LOAD DATA INFILE D:/Jiyas/HeatMap/vendor1.csv INTO TABLE vendor1 FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' ").executeUpdate();
i am getting
org.hibernate.exception.SQLGrammarException: could not execute native bulk manipulation query.....
....
...
Caused by: java.sql.SQLException: No value specified for parameter 1