Patches item #885815, was opened at 2004-01-27 13:24
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376687&aid=885815&group_id=22866

Category: JBossCMP
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Daniel Wintschel (humandoing)
Assigned to: Nobody/Anonymous (nobody)
Summary: Entity-Command for DB2 Primary Key Generation

Initial Comment:
I wrote a subclass of 
JDBCIdentityColumnCreateCommand that takes 
advantage of the built in DB2 function 
IDENTITY_VAL_LOCAL(). This function returns the last 
generated ID for a DB Identity column (read: PK column) 
within a given transaction. This is only useful for tables 
in IBM DB2 that are created using the identity column 
statement (which is quite common for apps that want 
the DB to generate primary keys).

I have tested this somewhat extensively on DB2 8.1 and 
JBoss 3.2.2 on Windows 2000 Pro.

The class doesn't currently do any checking for what 
Java data type the primary key is, I can easily add that. 
I just wanted to submit the patch to see if there was 
interest in having it included. 

The file is attached.


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376687&aid=885815&group_id=22866


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to