users@glassfish.java.net

RE: persistence: ommiting sequence for ID?

From: Gordon Yorke <gordon.yorke_at_oracle.com>
Date: Thu, 24 May 2007 10:18:43 -0400

Hello,
    Simply setting the ID value will cause TopLink Essentials to not provide a sequence number for that object. So there are no changes required by you.
--Gordon

-----Original Message-----
From: glassfish_at_javadesktop.org [mailto:glassfish_at_javadesktop.org]
Sent: Thursday, May 24, 2007 9:50 AM
To: users_at_glassfish.dev.java.net
Subject: persistence: ommiting sequence for ID?


Hello.

Maybe someone knows if I can change in the runtime configuration of entities? I have one entity used in various databases in one application, and I need to make It use sequence generator in one database, but the another should use ID that I provide from within the code.
Is it possible?

Thanks in advance?
[Message sent by forum member 'kretes' (kretes)]

http://forums.java.net/jive/thread.jspa?messageID=218716

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net