Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 8A7599FA19A for ; Tue, 6 Feb 2007 05:03:32 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 38474-01 for ; Tue, 6 Feb 2007 05:03:28 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id BFFDC9FA312 for ; Tue, 6 Feb 2007 05:03:27 -0400 (AST) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HEMEW-0000Sz-09 for pgsql-jdbc@postgresql.org; Tue, 06 Feb 2007 10:03:24 +0100 Received: from mordor.imp.ac.at ([193.171.188.3]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Feb 2007 10:03:23 +0100 Received: from tamir by mordor.imp.ac.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Feb 2007 10:03:23 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: "Ido M. Tamir" Subject: Re: is not mapped Date: Tue, 06 Feb 2007 10:03:01 +0100 Lines: 35 Message-ID: References: <8809786.post@talk.nabble.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: mordor.imp.ac.at User-Agent: KNode/0.10.4 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/33 X-Sequence-Number: 16589 shahab wrote: > > Hi: > > I am trying to use access table in postgress database using hibernate. > (similar to tutirial at > http://cwiki.apache.org/S2WIKI/struts-2-spring-jpa-ajax.html). I am > getting the following error - > > SEVERE: Could not execute action > java.lang.IllegalArgumentException: > org.hibernate.hql.ast.QuerySyntaxException: tmsuser is not mapped [select > t.id, t.us > erid, t.password from tmsuser t] > at > > > My Model file is as follows - > @Entity > public class TMSUser { > @Id > @GeneratedValue > private Integer id; > private String userid; > private String password; > You have to go to the hibernate forum at hibernate.org. But I think your problem is that class names are case sensitive in HQL: select t.id, t.userid, t.password from TMSUser t HTH ido