dev@glassfish.java.net

SQLAnyhwhere: Is it OK to "fake" a sequence?

From: Markus KARG <markus.karg_at_gmx.net>
Date: Mon, 08 Jan 2007 23:06:20 +0100

Tom,

another open question: As you know, I have "faked" support for SQL
sequences by using IDENTITY columns. Actually, for JPA a SEQUENCE is not
the same than an IDENTITY column. At least the @GeneratedValue
annotation lets the user decide whether SEQUENCE or IDENTITY shall be
used. So is my decision wrong? Shall I remove the fake (then it should
be removed from the SybasePlatform, too)? What is the "political
decision" for "faking features"?

Thanks
Markus