I am not using this, however, this is what should happen. Middlegen will
create beans with the following tags:
*
* @weblogic:automatic-key-generation
* generator-type="ORACLE"
* generator-name="FOOBAR_SEQUENCE"
* key-cache-size="1"
*
XDoclet will apply advanced fuzzy-neural-network technology to generate
the following in weblogic-cmp-rdbms.xml:
<automatic-key-generation>
<generator-type>ORACLE</generator-type>
<generator-name>FOOBAR_SEQUENCE</generator-name>
<key-cache-size>1</key-cache-size>
</automatic-key-generation>
(Note: key-cache-size MUST equal the sequence's increment which by
default is 1)
So the binding is done on a bean-by-bean basis, that is, on a
table-by-table basis.
-----Original Message-----
From: Perchonok, David [mailto:***@bankofamerica.com]
Sent: Tuesday, January 28, 2003 4:41 PM
To: middlegen-***@lists.sourceforge.net
Subject: [Middlegen-user] RE: Oracle Sequences
Rod -
Thanks for your message. Based upon your input, the weblogic subtask
would appear as the following:
<weblogic pkgen="VENDOR_SEQ" generatorName="DEAL_SEQ"
keyCacheSize="1"/>
But how would this be associated back to a table/bean?
David Perchonok
Software Design and Development
Bank of America - CRM Services
Email: ***@bankofamerica.com
====================================
From: Rod Macpherson <***@ve...>
</mailarchive/message.php?msg_id=3654630>
RE: Oracle Sequences </mailarchive/message.php?msg_id=3654630>
2003-01-28 16:55
Use the weblogic sub-task versus oracleSequence. Specify VENDOR_SEQ
as
pkgen value and the name of the Oracle sequence as the
generatorName.
The oracleSequence deal will work but I believe you have to supply
a
table with a single numeric column in that case.
-----Original Message-----
From: Perchonok, David [mailto:***@ba...]
Sent: Tuesday, January 28, 2003 1:35 PM
To: middlegen-***@li...
Subject: [Middlegen-user] Oracle Sequences
Can anyone enlighten me how to specify automatic key generation
for
Oracle sequences? Our toolset is Weblogic and Oracle. It seems
as though
we should be usng the 'oracleSequence' optional element for the
cmp20
task ... but the documentation does not clearly specify how to
associate
a column to a particular Oracle sequence.
Many thanks -
David Perchonok
Software Design and Development
Bank of America - CRM Services
Email: ***@ba...
-------------------------------------------------------
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
middlegen-user mailing list middlegen-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/middlegen-user