If I know how to add one config to class-table mapping, I could add a
sequence-name to field mappings...
If someone knows how to point direction (byt I really don't like idea of
changing Clazz... But appear that this is a unique solution).
Suggestion:
Thomas, is possible to add a "<property>" to field descriptor in XML file?
This property should have two attributes: property-name and property-value.
This is a very simple way to extends OJB functionality. And is easy to
implement in XML... This properties can be put into hashtable, so is easy to
get them into extensions...
Sample usage:
<field-descriptor id="1"
name="myField"
column="MY_DB_FIELD"
jdbc-type="INTEGER"
primarykey="true"
autoincrement="true">
<property name="sequence" value="MY_SEQUENCE_FIELD"/>
</field-descriptor>
Just My 2c
Edson Richter
-----Mensagem original-----
De: Edson Carlos Ericksson Richter
[mailto:erichter@;saojudastadeu.com.br]
Enviada em: Friday, November 01, 2002 12:18 AM
Para: OJB Users List
Assunto: RES: Oracle SequenceManager
Hi! I've discovered that initial version of SequenceManagerSapImpl are not
working with 0.9.7. Follows correct source.
Error was on constructor signature.
Thanks by your patience.
Edson Richter
-----Mensagem original-----
De: [EMAIL PROTECTED] [mailto:jens.kraemer@;gmx.net]
Enviada em: Friday, November 01, 2002 12:08 AM
Para: OJB Users List
Assunto: Re: Oracle SequenceManager
On Thu, Oct 31, 2002 at 02:03:48PM -0800, Ryan Kennedy wrote:
> Are there any sequence managers available that can utilize Oracle
sequences?
> I saw the SequenceManagerSapImpl class, but it appears to require that
your
> sequence name conform to a particular pattern. My sequences do not conform
to
> that pattern and can't be changed, so that makes SequenceManagerSapImpl
not a
> viable solution.
As long as your sequence names conform to *any* pattern (making it
possible to identify the correct sequence from given table/field names)
it is easy to derive a Sequence Manager working for you from
SequencemanagerSapImpl. Just change the lines where the sql-statement is
assembled to match your naming scheme.
I can post the oracle sequence manager I wrote for our sequence naming
scheme
tomorrow if you like.
Maybe it would be a good solution to write a configurable
sequencemanager who reads the naming pattern from OJB.properties ?
hth,
Jens
>
> Ryan Kennedy
> Software Engineer
> Jel, Inc.
> tel. 916.447.5463 ext. 133
> fax. 916.447.5465
> web. www.jel.net
>
> --
> To unsubscribe, e-mail: <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>
--
To unsubscribe, e-mail: <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>
---
E-Mail recebido est� sem virus.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.401 / Virus Database: 226 - Release Date: 10/9/2002
---
Email foi verificado quanto a exist�ncia de virus antes de seu envio, e n�o
h� virus.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.401 / Virus Database: 226 - Release Date: 10/9/2002
---
E-Mail recebido est� sem virus.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.401 / Virus Database: 226 - Release Date: 10/9/2002
---
Email foi verificado quanto a exist�ncia de virus antes de seu envio, e n�o
h� virus.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.401 / Virus Database: 226 - Release Date: 10/9/2002
--
To unsubscribe, e-mail: <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>