From: Lew <noone@lwsc.ehost-services.com>
To: pgsql-sql@postgresql.org
Subject: Re: Hibernate, web application and only one sequence for all primary keys
Date: Fri, 18 Sep 2009 22:38:07 -0400
Message-ID: <h91g6g$3la$1@news.albasani.net> (raw)
In-Reply-To: <25490498.post@talk.nabble.com>
References: <25490498.post@talk.nabble.com>
rawi wrote:
> Grails/Hibernate wishes per default one sequence for all tables-PKs and all
> PKs as BigInt.
How is that a Hibernate default?
Hibernate lets you define a multitude of types as a primary key, and the
sequence each uses is a matter of XML or annotation configuration, at least in
the Java version of Hibernate which is the only form of it that I've used.
I've used both "old-fashioned" Hibernate with *.hbm.xml mapping descriptors,
and the new-fangled JPA (Java Persistence API) version.
I've used Hibernate with String and (long) integer key types, sequenced and
not. For my learning, I use a system on Linux with Java and PostgreSQL. It
works just fine.
I'm not familiar with Grails.
--
Lew
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: noone@lwsc.ehost-services.com
Subject: Re: Hibernate, web application and only one sequence for all primary keys
In-Reply-To: <h91g6g$3la$1@news.albasani.net>
* 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