pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ido M. Tamir <tamir@imp.univie.ac.at>
To: pgsql-jdbc@postgresql.org
Subject: Re: <table name> is not mapped
Date: Tue, 06 Feb 2007 10:03:01 +0100
Message-ID: <eq9g8k$i9m$1@sea.gmane.org> (raw)
References: <8809786.post@talk.nabble.com>

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




view thread (2+ messages)

Message-ID: <eq9g8k$i9m$1@sea.gmane.org>
Permalink:  ../eq9g8k$i9m$1@sea.gmane.org/
Also on:    postgresql.org/message-id/eq9g8k$i9m$1@sea.gmane.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: tamir@imp.univie.ac.at
  Subject: Re: <table name> is not mapped
  In-Reply-To: <eq9g8k$i9m$1@sea.gmane.org>
  References: <8809786.post@talk.nabble.com> <eq9g8k$i9m$1@sea.gmane.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox