Re: HSQLDB not properly recognizing Primary Key from JPA Annotations

Fred Toussi <[email protected]>
Newsgroups gmane.comp.java.hsqldb.user
Message-ID <1407484980.2083116.150478765.3C7754DF@webmail.messagingengine.com>
This has nothing to do with HSQLDB.

The primary key for a table is always user-defined. In this
case it is the JPA (Hibernate) that sends a statement such as
CREATE TABLE X(Y INTEGER PRIMARY KEY, ..) to the database
engine. Hibernate would create primary keys the same way with
Oracle and HSQLDB. As someone commented on your question, the
most likely cause is your Oracle schema is user-defined but you
are relying on Hibernate to generate the primary key in your
tests.

Fred

On Fri, Aug 8, 2014, at 00:04, Chris Pratt wrote:

I just asked this question over on Stack Overflow.  Does anyone
here know the answer?

[1]http://stackoverflow.com/questions/25193560/hsqldb-not-prope
rly-recognizing-primary-key-from-jpa-annotations

Thanks.
  (*Chris*)

---------------------------------------------------------------
---------------

Infragistics Professional

Build stunning WinForms apps today!

Reboot your WinForms applications with our WinForms controls.

Build a bridge from your legacy apps to the future.

[2]http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/
4140/ostg.clktrk

_______________________________________________

Hsqldb-user mailing list

[3][email protected]

[4]https://lists.sourceforge.net/lists/listinfo/hsqldb-user

References

1. http://stackoverflow.com/questions/25193560/hsqldb-not-properly-recognizing-primary-key-from-jpa-annotations
2. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
3. mailto:[email protected]
4. https://lists.sourceforge.net/lists/listinfo/hsqldb-user

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds

_______________________________________________
Hsqldb-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hsqldb-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.