In the mapping.xml file. See http://castor.exolab.org/key-generator.html
for specific explanation under the sequence section, but you'd use it
this way:
<key-generator name="SEQUENCE" alias="A">
<param name="sequence" value="a_seq"/>
</key-generator>
where a_seq is the sequence name.
Note that with {0}_seq, the {0} is replaced with the table name. You
also (in the cvs version) have access to the field name with {1} which
is useful for postgresql. (So, set it to {0}_{1}_seq with postgresql
to get table_field_seq)
(I still need to update the docs for this... thanks for reminding me.)
--- [EMAIL PROTECTED] wrote:
> Hello. The SequenceKeyGenerator sets the sequence object with the
> line:
>
> _seqName = params.getProperty("sequence", "{0}_seq");
>
> Where do I set the property? Is it in the database.xml file?
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
>
=====
Virtually, | "Must you shout too?"
Ned Wolpert | -Dante
[EMAIL PROTECTED] |
_________________/ "Who watches the watchmen?"
4e75 -Juvenal, 120 AD
-- Place your commercial here -- fnord
__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev