On Tue, Mar 17, 2020 at 05:40:02PM -0400, Jose Blanco wrote:
> 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

Yes.

  https://docs.jboss.org/hibernate/orm/4.2/javadocs/org/hibernate/Session.html

> 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.

-- 
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu

-- 
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/20200318190439.GF3874%40IUPUI.Edu.

Attachment: signature.asc
Description: PGP signature

Reply via email to