Hi! My name is Leandro Costa, I worked at CONICET, in Argentina. We are 
using DSpace (Version 4.2) for our repository.
We want to upgrade to DSpace 6.0, and now I'm writing because i'm having 
some problems to use a new table in that version.

I create the object and do everything step by step as this documentation 
says: 
https://wiki.duraspace.org/display/DSPACE/DSpace+Service+based+api#DSpaceServicebasedapi-Servicebasedapi

I can create SQL native queries, like:

     Query query = getHibernateSession(context).createSQLQuery("SELECT 
i.nombre FROM autorconicet i ORDER BY i.id_autor DESC LIMIT 1");
    return (String)query.uniqueResult();


But when I try to use HQL, like:

return count(createQuery(context, "SELECT count(a) FROM AutorConicet a"));

I get this kind of 
error: org.hibernate.hql.internal.ast.QuerySyntaxException: AutorConicet is 
not mapped [SELECT count(a) FROM AutorConicet a]

So, i thought that, maybe, it was because the class isn't in the 
hibernate.cfg.xml, but when I add the class there I get an error while the 
tomcat is starting saying that the application generates a leak of memory 
associated to the classes:

CacheManager
UpdateTimestampsCache
StandardQueryCache
MetadataSchema
MetadataField


Could you help me?

Thanks!

Leandro Costa.-


-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to