Feature Requests item #771586, was opened at 2003-07-15 15:02 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376688&aid=771586&group_id=22866
Category: JBossCMP Group: v3.2 Status: Open Resolution: None Priority: 5 Submitted By: Carsten Hammer (chammer) Assigned to: Nobody/Anonymous (nobody) Summary: support tranparent pk generation Initial Comment: At the moment it is not possible to use auto-increment columns and at the same time provide create methods that set the primary key to a wanted value. At least Mysql supports this. For your information I appended the user group thread: Hello Carsten, you are right. I just tried it with MySQL. Please, submit a feature request. alex Tuesday, July 15, 2003, 3:01:12 PM, Carsten Hammer wrote: CH> Hi Alexey, CH> thanks for your answer. CH> Mysql is definitly able to do it. A "insert into" command can be used on CH> such a table like on any other table. The difference is that you are able to CH> get the generated primary key if it had to be generated afterwards using a CH> mysql specific command. Of course I am not sure how and if this can be used CH> using Java... CH> I thought MSSQL2000 should be able to do it then as well, but I am not sure. CH> I thought of having two creater methods, one with a parameter for the CH> primary key and one without. CH> It has to through an exception if the primary key exists but that is CH> something I could handle then. CH> Best regards, CH> Carsten CH> "Alexey Loubyansky" <[EMAIL PROTECTED]> schrieb im Newsbeitrag CH> news:[EMAIL PROTECTED] CH> Hello Carsten, CH> by autoincrement you mean that the column is autoincremented by CH> the database, right? CH> My question is, does the database you use allow you to write to a CH> column that is managed by the database? I would guess, the answer is CH> no. And, hence, JBoss can do nothing with it. CH> alex CH> Monday, July 14, 2003, 6:26:53 PM, Carsten Hammer wrote: CH>> Hi JBoss Gurus, CH>> is it possible to use autoincrement on a column for cases I donґt get a CH>> primary key and in cases where I do get primary keys try to use them? CH>> I need to import a lot of data containing primary keys and after that I CH> need CH>> to create primary keys myself in my application to be able to create CH>> additional rows. CH>> Thanks in advance, CH>> Carsten ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376688&aid=771586&group_id=22866 ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
