You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@roller.apache.org by Dudee <gu...@gmail.com> on 2007/09/27 16:03:22 UTC

There is no query with the name "" defined for any of the known persistent classes

I get the following error when I try to use a named query from the
JPAWeblogManagerImpl. Why isn't "MyNewClass" defined as a persistent class.
It looks just like all the other classes that are listed below.

"There is no query with the name "MyNewClass.getInfo" defined for any of the
known persistent classes:
[org.apache.roller.weblogger.pojos.TaskLock,
org.apache.roller.weblogger.pojos.AutoPing,
org.apache.roller.weblogger.pojos.Weblog,
org.apache.roller.weblogger.pojos.WeblogEntry,
org.apache.roller.weblogger.pojos.WeblogReferrer,
org.apache.roller.weblogger.pojos.WeblogEntryAttribute,
org.apache.roller.weblogger.pojos.WeblogEntryTagAggregate,
org.apache.roller.weblogger.pojos.WeblogBookmarkFolder,
org.apache.roller.weblogger.pojos.WeblogTemplate,
org.apache.roller.weblogger.pojos.WeblogEntryComment,
org.apache.roller.weblogger.pojos.UserRole,
org.apache.roller.weblogger.pojos.WeblogCategory,
org.apache.roller.weblogger.pojos.User,
org.apache.roller.weblogger.pojos.PingTarget,
org.apache.roller.weblogger.pojos.RuntimeConfigProperty,
org.apache.roller.weblogger.pojos.PingQueueEntry,
org.apache.roller.weblogger.pojos.WeblogHitCount,
org.apache.roller.weblogger.pojos.WeblogPermission,
org.apache.roller.weblogger.pojos.WeblogEntryTag,
org.apache.roller.weblogger.pojos.WeblogBookmark].
at
org.apache.openjpa.meta.MetaDataRepository.getQueryMetaData(MetaDataRepository.java:1504)
	at
org.apache.openjpa.persistence.EntityManagerImpl.createNamedQuery(EntityManagerImpl.java:782)
	at
org.apache.openjpa.persistence.EntityManagerImpl.createNamedQuery(EntityManagerImpl.java:65)
	at
org.apache.roller.weblogger.business.jpa.JPAPersistenceStrategy.getNamedQuery(JPAPersistenceStrategy.java:273)
	at
org.apache.roller.weblogger.business.jpa.JPAWeblogManagerImpl.getInfo(JPAWeblogManagerImpl.java:1714)



-- 
View this message in context: http://www.nabble.com/There-is-no-query-with-the-name-%22%22-defined-for-any-of-the-known-persistent-classes-tf4528598s12275.html#a12921976
Sent from the Roller - Dev mailing list archive at Nabble.com.


Re: There is no query with the name "" defined for any of the known persistent classes

Posted by Dave <sn...@gmail.com>.
Did you define an ORM file for your new class?
Did you add it to persistence.xml?

- Dave


On 9/27/07, Dudee <gu...@gmail.com> wrote:
>
> I get the following error when I try to use a named query from the
> JPAWeblogManagerImpl. Why isn't "MyNewClass" defined as a persistent class.
> It looks just like all the other classes that are listed below.
>
> "There is no query with the name "MyNewClass.getInfo" defined for any of the
> known persistent classes:
> [org.apache.roller.weblogger.pojos.TaskLock,
> org.apache.roller.weblogger.pojos.AutoPing,
> org.apache.roller.weblogger.pojos.Weblog,
> org.apache.roller.weblogger.pojos.WeblogEntry,
> org.apache.roller.weblogger.pojos.WeblogReferrer,
> org.apache.roller.weblogger.pojos.WeblogEntryAttribute,
> org.apache.roller.weblogger.pojos.WeblogEntryTagAggregate,
> org.apache.roller.weblogger.pojos.WeblogBookmarkFolder,
> org.apache.roller.weblogger.pojos.WeblogTemplate,
> org.apache.roller.weblogger.pojos.WeblogEntryComment,
> org.apache.roller.weblogger.pojos.UserRole,
> org.apache.roller.weblogger.pojos.WeblogCategory,
> org.apache.roller.weblogger.pojos.User,
> org.apache.roller.weblogger.pojos.PingTarget,
> org.apache.roller.weblogger.pojos.RuntimeConfigProperty,
> org.apache.roller.weblogger.pojos.PingQueueEntry,
> org.apache.roller.weblogger.pojos.WeblogHitCount,
> org.apache.roller.weblogger.pojos.WeblogPermission,
> org.apache.roller.weblogger.pojos.WeblogEntryTag,
> org.apache.roller.weblogger.pojos.WeblogBookmark].
> at
> org.apache.openjpa.meta.MetaDataRepository.getQueryMetaData(MetaDataRepository.java:1504)
>         at
> org.apache.openjpa.persistence.EntityManagerImpl.createNamedQuery(EntityManagerImpl.java:782)
>         at
> org.apache.openjpa.persistence.EntityManagerImpl.createNamedQuery(EntityManagerImpl.java:65)
>         at
> org.apache.roller.weblogger.business.jpa.JPAPersistenceStrategy.getNamedQuery(JPAPersistenceStrategy.java:273)
>         at
> org.apache.roller.weblogger.business.jpa.JPAWeblogManagerImpl.getInfo(JPAWeblogManagerImpl.java:1714)
>
>
>
> --
> View this message in context: http://www.nabble.com/There-is-no-query-with-the-name-%22%22-defined-for-any-of-the-known-persistent-classes-tf4528598s12275.html#a12921976
> Sent from the Roller - Dev mailing list archive at Nabble.com.
>
>

Re: Roller based government blog site was announced yesterday

Posted by Dave <sn...@gmail.com>.
Congratulations Henry. The site looks great!

I'm glad we could help.

I'll blog about it in the next episode of Roller Strong.

Is there anything you can share about your configuration as in app
server, database, customizations required, etc.? I'd love to hear more
about your setup.

- Dave



On 9/28/07, henry.chang@gsa.gov <he...@gsa.gov> wrote:
> David and fellow roller developers,
>
> We are very pleased to announce that USA.gov and the team at the Office of
> Citizen Services at GSA have just launched a blog.  Gov Gab is a blog for
> all Americans to share all our government information.  Check it out at
> http://www.govgab.gov . This blog is based on Roller 3.1. We would not
> have done it without your excellent support. I want to extend my best
> wishes for continued success to the Roller community. We depend on your
> good work and continue support to make this blog a better choice for the
> U.S. citizen to receive government information. Kudos to all of you.
>
> Henry Chang
> IT Specialist
> USA.gov Technologies
> General Services Administration
> Office Phone: 202-219-1801
> E-mail: henry.chang@gsa.gov
>

RE: Roller based government blog site was announced yesterday

Posted by Boris Milikič <bo...@mf-rs.si>.
Is that sign of a Roller maturity in regard to:  functionality, usability , quality, security, scalability, support, community, governance, ...
Congratulation!


Boris Milikic
IT Specilist
Ministry of finance
Slovenia

-----Original Message-----
From: henry.chang@gsa.gov [mailto:henry.chang@gsa.gov] 
Sent: Friday, September 28, 2007 4:01 PM
To: dev@roller.apache.org
Cc: user@roller.apache.org
Subject: Roller based government blog site was announced yesterday

David and fellow roller developers,

We are very pleased to announce that USA.gov and the team at the Office of Citizen Services at GSA have just launched a blog.  Gov Gab is a blog for all Americans to share all our government information.  Check it out at http://www.govgab.gov . This blog is based on Roller 3.1. We would not have done it without your excellent support. I want to extend my best wishes for continued success to the Roller community. We depend on your good work and continue support to make this blog a better choice for the U.S. citizen to receive government information. Kudos to all of you.

Henry Chang
IT Specialist
USA.gov Technologies
General Services Administration
Office Phone: 202-219-1801
E-mail: henry.chang@gsa.gov

Roller based government blog site was announced yesterday

Posted by he...@gsa.gov.
David and fellow roller developers,

We are very pleased to announce that USA.gov and the team at the Office of 
Citizen Services at GSA have just launched a blog.  Gov Gab is a blog for 
all Americans to share all our government information.  Check it out at 
http://www.govgab.gov . This blog is based on Roller 3.1. We would not 
have done it without your excellent support. I want to extend my best 
wishes for continued success to the Roller community. We depend on your 
good work and continue support to make this blog a better choice for the 
U.S. citizen to receive government information. Kudos to all of you.

Henry Chang
IT Specialist
USA.gov Technologies 
General Services Administration
Office Phone: 202-219-1801
E-mail: henry.chang@gsa.gov

Roller based government blog site was announced yesterday

Posted by he...@gsa.gov.
David and fellow roller developers,

We are very pleased to announce that USA.gov and the team at the Office of 
Citizen Services at GSA have just launched a blog.  Gov Gab is a blog for 
all Americans to share all our government information.  Check it out at 
http://www.govgab.gov . This blog is based on Roller 3.1. We would not 
have done it without your excellent support. I want to extend my best 
wishes for continued success to the Roller community. We depend on your 
good work and continue support to make this blog a better choice for the 
U.S. citizen to receive government information. Kudos to all of you.

Henry Chang
IT Specialist
USA.gov Technologies 
General Services Administration
Office Phone: 202-219-1801
E-mail: henry.chang@gsa.gov