hql « Schema « JPA Q&A





1. How can I change column length using HQL query?    stackoverflow.com

I tried session.createSQLQuery("ALTER TABLE People MODIFY address VARCHAR(1000);").executeUpdate(); but this throws org.hibernate.exception.SQLGrammarException: could not execute native bulk manipulation query After a lot of googling, the recommendation is to use HQL instead of SQL ...

3. How to skip schema name in any HQL operation?    forum.hibernate.org