Re: <table name> is not mapped

From: "Ido M(dot) Tamir" <tamir(at)imp(dot)univie(dot)ac(dot)at>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: <table name> is not mapped
Date: 2007-02-06 09:03:01
Message-ID: eq9g8k$i9m$1@sea.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Jeffrey Cox 2007-02-06 09:36:50 Re: getProcedureColumns
Previous Message shahab 2007-02-05 16:37:48 <table name> is not mapped