Using hibernate/hql to truncate a table?
        Posted  
        
            by user149100
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user149100
        
        
        
        Published on 2009-08-11T20:27:55Z
        Indexed on 
            2010/05/28
            13:02 UTC
        
        
        Read the original article
        Hit count: 536
        
What is the recommended way to truncate a table using hibernate/hql?
I've tried this:
 Query query = session.createQuery("truncate table MyTable");
 query.executeUpdate();
But it didn't work (truncate doesn't seem do be documented anywhere in hql...)
© Stack Overflow or respective owner