pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vernon <vwu725@yahoo.com>
To: pgsql-jdbc@postgresql.org
Subject: Error with a hibernate query
Date: Thu, 14 Apr 2005 17:16:06 -0700 (PDT)
Message-ID: <20050415001606.11426.qmail@web40502.mail.yahoo.com> (raw)


The Java code:

public class User {

	private Long id;
	private String username;
	private String password;

        //...
}

The DB table:

create table USERS (
	id 			SERIAL UNIQUE primary key,	
	username 	VARCHAR(80) NOT NULL,
	password	VARCHAR(80) NOT NULL,
        ...
);

The Hibernate query:

getHibernateTemplate().findByNamedParam("select u from
					  User as u where u.username=:username and
u.password=:password", new String[] { "username",
"password" }



view thread (2+ messages)  latest in thread

Message-ID: <20050415001606.11426.qmail@web40502.mail.yahoo.com>
Permalink:  ../20050415001606.11426.qmail@web40502.mail.yahoo.com/
Also on:    postgresql.org/message-id/20050415001606.11426.qmail@web40502.mail.yahoo.com

 · 

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: vwu725@yahoo.com
  Subject: Re: Error with a hibernate query
  In-Reply-To: <20050415001606.11426.qmail@web40502.mail.yahoo.com>
  References: <20050415001606.11426.qmail@web40502.mail.yahoo.com>

* 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