I found the solution.  For the version of hibernate used by 6.3,  I have to
use createSQLQuery.  Discovered it by looking at this PR

https://github.com/DSpace/DSpace/commit/8ea6b21a73ace4267ec0b62c7f06b2f1b030e286



On Mon, Mar 16, 2020 at 2:27 PM Jose Blanco <[email protected]> wrote:

> trying to do this:
>
>         Query query = getHibernateSession(context)
>
>             .createNativeQuery("DELETE FROM individual_stats WHERE
> email=:email");
>
>         query.setParameter("email", email);
>
>         query.executeUpdate();
>
>
> But getting:
>
>
> [ERROR]
> dspace/dspace-api/src/main/java/org/dspace/eperson/dao/impl/EPersonDAOImpl.java:[247,13]
> cannot find symbol
>
> [ERROR] symbol:   method createNativeQuery(java.lang.String)
>
> [ERROR] location: interface org.hibernate.Session
>
>
> do I need to change something in pom.xml to get this?  I have 6.3.
>
>
> Thank you!
>
> -Jose
>

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/CAK%3DKc-vvSsTLOCRL3-5xOGw0sKZOfV7ds2_c2y8raTF0tUcbgA%40mail.gmail.com.

Reply via email to