You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Andrew Clute <an...@OSN.state.oh.us> on 2003/07/30 16:45:25 UTC
Confused about SequenceManager and MSSQL's uniqueidentifier
We have an existing database that uses GUID's as it's primary key for across
all tables. The PK's are defined as uniqueidentifier types, and their
default value is 'newid()' -- which is a call to generate a new GUID for
that ID.
My goal is to continue to use this pattern for generation of sequence
numbers for our implementation of OJB. And if I read it right, that means I
want to use the 'database generated sequences' concept in OJB, with the
SequenceManagerNextValImpl Sequence Manager.
Now, on this page here
(http://db.apache.org/ojb/howto-use-db-sequences.html), it talks about
needing to name your database sequences when you create your table (in the
example it is 'UniqueIdentifier') and that name is then used as the
attribute 'sequence-name' for the field-descriptor. But in our situation,
there is really no Sequence defined, with a name associated it, we are
really just using the default value that the table has associated with it.
So, how would I go about merging the concepts together? Can I use the
SequenceManagerNextValImpl and not give the sequence-name attribute for my
PK field-descriptor -- will it just default then to the value genrated by
the database?
Thanks in advance!
-Andrew
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Confused about SequenceManager and MSSQL's uniqueidentifier
Posted by Edson Carlos Ericksson Richter <ed...@mgrinformatica.com.br>.
Be careful, as far as I remember, GUID is Global Unique Identifier, so
you'll not have same value in two different tables on same database... And
identity is per table...
Quoted from MSDN:
"
uniqueidentifier
A globally unique identifier (GUID).
Remarks
A column or local variable of uniqueidentifier data type can be initialized
to a value in two ways:
Using the NEWID function.
Converting from a string constant in the following form
(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, in which each x is a hexadecimal
digit in the range 0-9 or a-f). For example,
6F9619FF-8B86-D011-B42D-00C04FC964FF is a valid uniqueidentifier value.
Comparison operators can be used with uniqueidentifier values. However,
ordering is not implemented by comparing the bit patterns of the two values.
The only operations that are allowed against a uniqueidentifier value are
comparisons (=, <>, <, >, <=, >=) and checking for NULL (IS NULL and IS NOT
NULL). No other arithmetic operators are allowed. All column constraints and
properties except IDENTITY are allowed on the uniqueidentifier data type.
"
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts
_ua-uz_6dyq.asp)
Best regards,
Edson Richter
----- Original Message -----
From: Andrew Clute
To: OJB Users List
Sent: Thursday, July 31, 2003 11:08 AM
Subject: Re: Confused about SequenceManager and MSSQL's uniqueidentifier
I have submitted to Armin an implementation that fixes my issue when using
MSSQL uniqueidentifier (GUID) as a PK on a table.
Thanks for every ones help.
-Andrew
On 7/31/03 9:42 AM, "Edson Carlos Ericksson Richter"
<ed...@mgrinformatica.com.br> wrote:
> Yes, there is a way to obtain the sequence value generated by a identity
> field in MsSQL Server.
>
> After the insert, in same session, execute
>
> select @@IDENTITY
>
> and you will have the value!
>
> This can be used by an special SequenceManager in OJB?
>
> Best regards,
>
> Edson Richter
>
> ----- Original Message -----
> From: "Armin Waibel" <ar...@code-au-lait.de>
> To: "OJB Users List" <oj...@db.apache.org>
> Sent: Thursday, July 31, 2003 7:56 AM
> Subject: Re: Confused about SequenceManager and MSSQL's uniqueidentifier
>
>
> Hi Andrew,
>
> ----- Original Message -----
> From: "Andrew Clute" <an...@OSN.state.oh.us>
> To: "OJB Users List" <oj...@db.apache.org>
> Sent: Wednesday, July 30, 2003 7:42 PM
> Subject: Re: Confused about SequenceManager and MSSQL's uniqueidentifier
>
>
>> You are absolutely correct -- it isn't a sequence, it is more like an
>> identity field.
>>
>> However, there is no way to retrieve the value generated to it
>> programmatically (I found that answer here:
>> http://www.sqlteam.com/item.asp?ItemID=283).
>>
>> So, I think I need to generate that GUID on my end first, and then
> populate
>> the field with it.
>>
>> How does Identity fields work for OJB?
>>
> There is a sequence manager implementation called
> SequenceManagerNativeImpl (beta-version not thoroughly
> tested, there is a test case called NativeIdentifierTest)
> supports Identity columns.
> Or try an alternative sequence manager implementation
> http://db.apache.org/ojb/sequencemanager.html
>
> It's also possible to implement your own sequence manager
> (e.g. extending AbstractSequenceManager) or to set the
> PK fields on your own.
>
> regards,
> Armin
>
>> On 7/30/03 12:03 PM, "Mykola Ostapchuk" <my...@sympatico.ca> wrote:
>>
>>> As far as I understand, MSSQL doesn't have any sequence managers
> (Oracle,
>>> SAP DB, PostgreSQL have).
>>> Identity field type isn't the same as sequence manager.
>>> If I'm wrong, please, correct me.
>>>
>>> Regards,
>>> Mykola
>>>
>>>
>>> ----- Original Message -----
>>> From: "Andrew Clute" <an...@OSN.state.oh.us>
>>> To: "OJB Users List" <oj...@db.apache.org>
>>> Sent: Wednesday, July 30, 2003 10:45 AM
>>> Subject: Confused about SequenceManager and MSSQL's uniqueidentifier
>>>
>>>
>>>> We have an existing database that uses GUID's as it's primary key
> for
>>> across
>>>> all tables. The PK's are defined as uniqueidentifier types, and
> their
>>>> default value is 'newid()' -- which is a call to generate a new
> GUID for
>>>> that ID.
>>>>
>>>> My goal is to continue to use this pattern for generation of
> sequence
>>>> numbers for our implementation of OJB. And if I read it right, that
> means
>>> I
>>>> want to use the 'database generated sequences' concept in OJB, with
> the
>>>> SequenceManagerNextValImpl Sequence Manager.
>>>>
>>>> Now, on this page here
>>>> (http://db.apache.org/ojb/howto-use-db-sequences.html), it talks
> about
>>>> needing to name your database sequences when you create your table
> (in the
>>>> example it is 'UniqueIdentifier') and that name is then used as the
>>>> attribute 'sequence-name' for the field-descriptor. But in our
> situation,
>>>> there is really no Sequence defined, with a name associated it, we
> are
>>>> really just using the default value that the table has associated
> with it.
>>>>
>>>> So, how would I go about merging the concepts together? Can I use
> the
>>>> SequenceManagerNextValImpl and not give the sequence-name
> attribute for
>>> my
>>>> PK field-descriptor -- will it just default then to the value
> genrated by
>>>> the database?
>>>>
>>>> Thanks in advance!
>>>> -Andrew
>>>>
>>>>
>>
>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>>>> For additional commands, e-mail: ojb-user-help@db.apache.org
>>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>>> For additional commands, e-mail: ojb-user-help@db.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>> For additional commands, e-mail: ojb-user-help@db.apache.org
>>
>>
>>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.504 / Virus Database: 302 - Release Date: 24/7/2003
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Be careful, as far as I remember, GUID is Global Unique Identifier, so
you'll not have same value in two different tables on same database... And
identity is per table...
Quoted from MSDN:
"
uniqueidentifier
A globally unique identifier (GUID).
Remarks
A column or local variable of uniqueidentifier data type can be initialized
to a value in two ways:
Using the NEWID function.
Converting from a string constant in the following form
(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, in which each x is a hexadecimal
digit in the range 0-9 or a-f). For example,
6F9619FF-8B86-D011-B42D-00C04FC964FF is a valid uniqueidentifier value.
Comparison operators can be used with uniqueidentifier values. However,
ordering is not implemented by comparing the bit patterns of the two values.
The only operations that are allowed against a uniqueidentifier value are
comparisons (=, <>, <, >, <=, >=) and checking for NULL (IS NULL and IS NOT
NULL). No other arithmetic operators are allowed. All column constraints and
properties except IDENTITY are allowed on the uniqueidentifier data type.
"
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts
_ua-uz_6dyq.asp)
Best regards,
Edson Richter
----- Original Message -----
From: Andrew Clute
To: OJB Users List
Sent: Thursday, July 31, 2003 11:08 AM
Subject: Re: Confused about SequenceManager and MSSQL's uniqueidentifier
I have submitted to Armin an implementation that fixes my issue when using
MSSQL uniqueidentifier (GUID) as a PK on a table.
Thanks for every ones help.
-Andrew
On 7/31/03 9:42 AM, "Edson Carlos Ericksson Richter"
<ed...@mgrinformatica.com.br> wrote:
> Yes, there is a way to obtain the sequence value generated by a identity
> field in MsSQL Server.
>
> After the insert, in same session, execute
>
> select @@IDENTITY
>
> and you will have the value!
>
> This can be used by an special SequenceManager in OJB?
>
> Best regards,
>
> Edson Richter
>
> ----- Original Message -----
> From: "Armin Waibel" <ar...@code-au-lait.de>
> To: "OJB Users List" <oj...@db.apache.org>
> Sent: Thursday, July 31, 2003 7:56 AM
> Subject: Re: Confused about SequenceManager and MSSQL's uniqueidentifier
>
>
> Hi Andrew,
>
> ----- Original Message -----
> From: "Andrew Clute" <an...@OSN.state.oh.us>
> To: "OJB Users List" <oj...@db.apache.org>
> Sent: Wednesday, July 30, 2003 7:42 PM
> Subject: Re: Confused about SequenceManager and MSSQL's uniqueidentifier
>
>
>> You are absolutely correct -- it isn't a sequence, it is more like an
>> identity field.
>>
>> However, there is no way to retrieve the value generated to it
>> programmatically (I found that answer here:
>> http://www.sqlteam.com/item.asp?ItemID=283).
>>
>> So, I think I need to generate that GUID on my end first, and then
> populate
>> the field with it.
>>
>> How does Identity fields work for OJB?
>>
> There is a sequence manager implementation called
> SequenceManagerNativeImpl (beta-version not thoroughly
> tested, there is a test case called NativeIdentifierTest)
> supports Identity columns.
> Or try an alternative sequence manager implementation
> http://db.apache.org/ojb/sequencemanager.html
>
> It's also possible to implement your own sequence manager
> (e.g. extending AbstractSequenceManager) or to set the
> PK fields on your own.
>
> regards,
> Armin
>
>> On 7/30/03 12:03 PM, "Mykola Ostapchuk" <my...@sympatico.ca> wrote:
>>
>>> As far as I understand, MSSQL doesn't have any sequence managers
> (Oracle,
>>> SAP DB, PostgreSQL have).
>>> Identity field type isn't the same as sequence manager.
>>> If I'm wrong, please, correct me.
>>>
>>> Regards,
>>> Mykola
>>>
>>>
>>> ----- Original Message -----
>>> From: "Andrew Clute" <an...@OSN.state.oh.us>
>>> To: "OJB Users List" <oj...@db.apache.org>
>>> Sent: Wednesday, July 30, 2003 10:45 AM
>>> Subject: Confused about SequenceManager and MSSQL's uniqueidentifier
>>>
>>>
>>>> We have an existing database that uses GUID's as it's primary key
> for
>>> across
>>>> all tables. The PK's are defined as uniqueidentifier types, and
> their
>>>> default value is 'newid()' -- which is a call to generate a new
> GUID for
>>>> that ID.
>>>>
>>>> My goal is to continue to use this pattern for generation of
> sequence
>>>> numbers for our implementation of OJB. And if I read it right, that
> means
>>> I
>>>> want to use the 'database generated sequences' concept in OJB, with
> the
>>>> SequenceManagerNextValImpl Sequence Manager.
>>>>
>>>> Now, on this page here
>>>> (http://db.apache.org/ojb/howto-use-db-sequences.html), it talks
> about
>>>> needing to name your database sequences when you create your table
> (in the
>>>> example it is 'UniqueIdentifier') and that name is then used as the
>>>> attribute 'sequence-name' for the field-descriptor. But in our
> situation,
>>>> there is really no Sequence defined, with a name associated it, we
> are
>>>> really just using the default value that the table has associated
> with it.
>>>>
>>>> So, how would I go about merging the concepts together? Can I use
> the
>>>> SequenceManagerNextValImpl and not give the sequence-name
> attribute for
>>> my
>>>> PK field-descriptor -- will it just default then to the value
> genrated by
>>>> the database?
>>>>
>>>> Thanks in advance!
>>>> -Andrew
>>>>
>>>>
>>
>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>>>> For additional commands, e-mail: ojb-user-help@db.apache.org
>>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>>> For additional commands, e-mail: ojb-user-help@db.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>> For additional commands, e-mail: ojb-user-help@db.apache.org
>>
>>
>>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.504 / Virus Database: 302 - Release Date: 24/7/2003
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Confused about SequenceManager and MSSQL's uniqueidentifier
Posted by Andrew Clute <an...@OSN.state.oh.us>.
I have submitted to Armin an implementation that fixes my issue when using
MSSQL uniqueidentifier (GUID) as a PK on a table.
Thanks for every ones help.
-Andrew
On 7/31/03 9:42 AM, "Edson Carlos Ericksson Richter"
<ed...@mgrinformatica.com.br> wrote:
> Yes, there is a way to obtain the sequence value generated by a identity
> field in MsSQL Server.
>
> After the insert, in same session, execute
>
> select @@IDENTITY
>
> and you will have the value!
>
> This can be used by an special SequenceManager in OJB?
>
> Best regards,
>
> Edson Richter
>
> ----- Original Message -----
> From: "Armin Waibel" <ar...@code-au-lait.de>
> To: "OJB Users List" <oj...@db.apache.org>
> Sent: Thursday, July 31, 2003 7:56 AM
> Subject: Re: Confused about SequenceManager and MSSQL's uniqueidentifier
>
>
> Hi Andrew,
>
> ----- Original Message -----
> From: "Andrew Clute" <an...@OSN.state.oh.us>
> To: "OJB Users List" <oj...@db.apache.org>
> Sent: Wednesday, July 30, 2003 7:42 PM
> Subject: Re: Confused about SequenceManager and MSSQL's uniqueidentifier
>
>
>> You are absolutely correct -- it isn't a sequence, it is more like an
>> identity field.
>>
>> However, there is no way to retrieve the value generated to it
>> programmatically (I found that answer here:
>> http://www.sqlteam.com/item.asp?ItemID=283).
>>
>> So, I think I need to generate that GUID on my end first, and then
> populate
>> the field with it.
>>
>> How does Identity fields work for OJB?
>>
> There is a sequence manager implementation called
> SequenceManagerNativeImpl (beta-version not thoroughly
> tested, there is a test case called NativeIdentifierTest)
> supports Identity columns.
> Or try an alternative sequence manager implementation
> http://db.apache.org/ojb/sequencemanager.html
>
> It's also possible to implement your own sequence manager
> (e.g. extending AbstractSequenceManager) or to set the
> PK fields on your own.
>
> regards,
> Armin
>
>> On 7/30/03 12:03 PM, "Mykola Ostapchuk" <my...@sympatico.ca> wrote:
>>
>>> As far as I understand, MSSQL doesn't have any sequence managers
> (Oracle,
>>> SAP DB, PostgreSQL have).
>>> Identity field type isn't the same as sequence manager.
>>> If I'm wrong, please, correct me.
>>>
>>> Regards,
>>> Mykola
>>>
>>>
>>> ----- Original Message -----
>>> From: "Andrew Clute" <an...@OSN.state.oh.us>
>>> To: "OJB Users List" <oj...@db.apache.org>
>>> Sent: Wednesday, July 30, 2003 10:45 AM
>>> Subject: Confused about SequenceManager and MSSQL's uniqueidentifier
>>>
>>>
>>>> We have an existing database that uses GUID's as it's primary key
> for
>>> across
>>>> all tables. The PK's are defined as uniqueidentifier types, and
> their
>>>> default value is 'newid()' -- which is a call to generate a new
> GUID for
>>>> that ID.
>>>>
>>>> My goal is to continue to use this pattern for generation of
> sequence
>>>> numbers for our implementation of OJB. And if I read it right, that
> means
>>> I
>>>> want to use the 'database generated sequences' concept in OJB, with
> the
>>>> SequenceManagerNextValImpl Sequence Manager.
>>>>
>>>> Now, on this page here
>>>> (http://db.apache.org/ojb/howto-use-db-sequences.html), it talks
> about
>>>> needing to name your database sequences when you create your table
> (in the
>>>> example it is 'UniqueIdentifier') and that name is then used as the
>>>> attribute 'sequence-name' for the field-descriptor. But in our
> situation,
>>>> there is really no Sequence defined, with a name associated it, we
> are
>>>> really just using the default value that the table has associated
> with it.
>>>>
>>>> So, how would I go about merging the concepts together? Can I use
> the
>>>> SequenceManagerNextValImpl and not give the sequence-name
> attribute for
>>> my
>>>> PK field-descriptor -- will it just default then to the value
> genrated by
>>>> the database?
>>>>
>>>> Thanks in advance!
>>>> -Andrew
>>>>
>>>>
>>
>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>>>> For additional commands, e-mail: ojb-user-help@db.apache.org
>>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>>> For additional commands, e-mail: ojb-user-help@db.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>> For additional commands, e-mail: ojb-user-help@db.apache.org
>>
>>
>>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.504 / Virus Database: 302 - Release Date: 24/7/2003
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Confused about SequenceManager and MSSQL's uniqueidentifier
Posted by Edson Carlos Ericksson Richter <ed...@mgrinformatica.com.br>.
Yes, there is a way to obtain the sequence value generated by a identity
field in MsSQL Server.
After the insert, in same session, execute
select @@IDENTITY
and you will have the value!
This can be used by an special SequenceManager in OJB?
Best regards,
Edson Richter
----- Original Message -----
From: "Armin Waibel" <ar...@code-au-lait.de>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Thursday, July 31, 2003 7:56 AM
Subject: Re: Confused about SequenceManager and MSSQL's uniqueidentifier
Hi Andrew,
----- Original Message -----
From: "Andrew Clute" <an...@OSN.state.oh.us>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Wednesday, July 30, 2003 7:42 PM
Subject: Re: Confused about SequenceManager and MSSQL's uniqueidentifier
> You are absolutely correct -- it isn't a sequence, it is more like an
> identity field.
>
> However, there is no way to retrieve the value generated to it
> programmatically (I found that answer here:
> http://www.sqlteam.com/item.asp?ItemID=283).
>
> So, I think I need to generate that GUID on my end first, and then
populate
> the field with it.
>
> How does Identity fields work for OJB?
>
There is a sequence manager implementation called
SequenceManagerNativeImpl (beta-version not thoroughly
tested, there is a test case called NativeIdentifierTest)
supports Identity columns.
Or try an alternative sequence manager implementation
http://db.apache.org/ojb/sequencemanager.html
It's also possible to implement your own sequence manager
(e.g. extending AbstractSequenceManager) or to set the
PK fields on your own.
regards,
Armin
> On 7/30/03 12:03 PM, "Mykola Ostapchuk" <my...@sympatico.ca> wrote:
>
> > As far as I understand, MSSQL doesn't have any sequence managers
(Oracle,
> > SAP DB, PostgreSQL have).
> > Identity field type isn't the same as sequence manager.
> > If I'm wrong, please, correct me.
> >
> > Regards,
> > Mykola
> >
> >
> > ----- Original Message -----
> > From: "Andrew Clute" <an...@OSN.state.oh.us>
> > To: "OJB Users List" <oj...@db.apache.org>
> > Sent: Wednesday, July 30, 2003 10:45 AM
> > Subject: Confused about SequenceManager and MSSQL's uniqueidentifier
> >
> >
> >> We have an existing database that uses GUID's as it's primary key
for
> > across
> >> all tables. The PK's are defined as uniqueidentifier types, and
their
> >> default value is 'newid()' -- which is a call to generate a new
GUID for
> >> that ID.
> >>
> >> My goal is to continue to use this pattern for generation of
sequence
> >> numbers for our implementation of OJB. And if I read it right, that
means
> > I
> >> want to use the 'database generated sequences' concept in OJB, with
the
> >> SequenceManagerNextValImpl Sequence Manager.
> >>
> >> Now, on this page here
> >> (http://db.apache.org/ojb/howto-use-db-sequences.html), it talks
about
> >> needing to name your database sequences when you create your table
(in the
> >> example it is 'UniqueIdentifier') and that name is then used as the
> >> attribute 'sequence-name' for the field-descriptor. But in our
situation,
> >> there is really no Sequence defined, with a name associated it, we
are
> >> really just using the default value that the table has associated
with it.
> >>
> >> So, how would I go about merging the concepts together? Can I use
the
> >> SequenceManagerNextValImpl and not give the sequence-name
attribute for
> > my
> >> PK field-descriptor -- will it just default then to the value
genrated by
> >> the database?
> >>
> >> Thanks in advance!
> >> -Andrew
> >>
> >>
>
>> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> >> For additional commands, e-mail: ojb-user-help@db.apache.org
> >>
> >
> >
>
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> > For additional commands, e-mail: ojb-user-help@db.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.504 / Virus Database: 302 - Release Date: 24/7/2003
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Confused about SequenceManager and MSSQL's uniqueidentifier
Posted by Armin Waibel <ar...@code-au-lait.de>.
Hi Andrew,
----- Original Message -----
From: "Andrew Clute" <an...@OSN.state.oh.us>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Wednesday, July 30, 2003 7:42 PM
Subject: Re: Confused about SequenceManager and MSSQL's uniqueidentifier
> You are absolutely correct -- it isn't a sequence, it is more like an
> identity field.
>
> However, there is no way to retrieve the value generated to it
> programmatically (I found that answer here:
> http://www.sqlteam.com/item.asp?ItemID=283).
>
> So, I think I need to generate that GUID on my end first, and then
populate
> the field with it.
>
> How does Identity fields work for OJB?
>
There is a sequence manager implementation called
SequenceManagerNativeImpl (beta-version not thoroughly
tested, there is a test case called NativeIdentifierTest)
supports Identity columns.
Or try an alternative sequence manager implementation
http://db.apache.org/ojb/sequencemanager.html
It's also possible to implement your own sequence manager
(e.g. extending AbstractSequenceManager) or to set the
PK fields on your own.
regards,
Armin
> On 7/30/03 12:03 PM, "Mykola Ostapchuk" <my...@sympatico.ca> wrote:
>
> > As far as I understand, MSSQL doesn't have any sequence managers
(Oracle,
> > SAP DB, PostgreSQL have).
> > Identity field type isn't the same as sequence manager.
> > If I'm wrong, please, correct me.
> >
> > Regards,
> > Mykola
> >
> >
> > ----- Original Message -----
> > From: "Andrew Clute" <an...@OSN.state.oh.us>
> > To: "OJB Users List" <oj...@db.apache.org>
> > Sent: Wednesday, July 30, 2003 10:45 AM
> > Subject: Confused about SequenceManager and MSSQL's uniqueidentifier
> >
> >
> >> We have an existing database that uses GUID's as it's primary key
for
> > across
> >> all tables. The PK's are defined as uniqueidentifier types, and
their
> >> default value is 'newid()' -- which is a call to generate a new
GUID for
> >> that ID.
> >>
> >> My goal is to continue to use this pattern for generation of
sequence
> >> numbers for our implementation of OJB. And if I read it right, that
means
> > I
> >> want to use the 'database generated sequences' concept in OJB, with
the
> >> SequenceManagerNextValImpl Sequence Manager.
> >>
> >> Now, on this page here
> >> (http://db.apache.org/ojb/howto-use-db-sequences.html), it talks
about
> >> needing to name your database sequences when you create your table
(in the
> >> example it is 'UniqueIdentifier') and that name is then used as the
> >> attribute 'sequence-name' for the field-descriptor. But in our
situation,
> >> there is really no Sequence defined, with a name associated it, we
are
> >> really just using the default value that the table has associated
with it.
> >>
> >> So, how would I go about merging the concepts together? Can I use
the
> >> SequenceManagerNextValImpl and not give the sequence-name
attribute for
> > my
> >> PK field-descriptor -- will it just default then to the value
genrated by
> >> the database?
> >>
> >> Thanks in advance!
> >> -Andrew
> >>
> >>
>
>> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> >> For additional commands, e-mail: ojb-user-help@db.apache.org
> >>
> >
> >
>
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> > For additional commands, e-mail: ojb-user-help@db.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Confused about SequenceManager and MSSQL's uniqueidentifier
Posted by Andrew Clute <an...@OSN.state.oh.us>.
You are absolutely correct -- it isn't a sequence, it is more like an
identity field.
However, there is no way to retrieve the value generated to it
programmatically (I found that answer here:
http://www.sqlteam.com/item.asp?ItemID=283).
So, I think I need to generate that GUID on my end first, and then populate
the field with it.
How does Identity fields work for OJB?
On 7/30/03 12:03 PM, "Mykola Ostapchuk" <my...@sympatico.ca> wrote:
> As far as I understand, MSSQL doesn't have any sequence managers (Oracle,
> SAP DB, PostgreSQL have).
> Identity field type isn't the same as sequence manager.
> If I'm wrong, please, correct me.
>
> Regards,
> Mykola
>
>
> ----- Original Message -----
> From: "Andrew Clute" <an...@OSN.state.oh.us>
> To: "OJB Users List" <oj...@db.apache.org>
> Sent: Wednesday, July 30, 2003 10:45 AM
> Subject: Confused about SequenceManager and MSSQL's uniqueidentifier
>
>
>> We have an existing database that uses GUID's as it's primary key for
> across
>> all tables. The PK's are defined as uniqueidentifier types, and their
>> default value is 'newid()' -- which is a call to generate a new GUID for
>> that ID.
>>
>> My goal is to continue to use this pattern for generation of sequence
>> numbers for our implementation of OJB. And if I read it right, that means
> I
>> want to use the 'database generated sequences' concept in OJB, with the
>> SequenceManagerNextValImpl Sequence Manager.
>>
>> Now, on this page here
>> (http://db.apache.org/ojb/howto-use-db-sequences.html), it talks about
>> needing to name your database sequences when you create your table (in the
>> example it is 'UniqueIdentifier') and that name is then used as the
>> attribute 'sequence-name' for the field-descriptor. But in our situation,
>> there is really no Sequence defined, with a name associated it, we are
>> really just using the default value that the table has associated with it.
>>
>> So, how would I go about merging the concepts together? Can I use the
>> SequenceManagerNextValImpl and not give the sequence-name attribute for
> my
>> PK field-descriptor -- will it just default then to the value genrated by
>> the database?
>>
>> Thanks in advance!
>> -Andrew
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>> For additional commands, e-mail: ojb-user-help@db.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Confused about SequenceManager and MSSQL's uniqueidentifier
Posted by Mykola Ostapchuk <my...@sympatico.ca>.
As far as I understand, MSSQL doesn't have any sequence managers (Oracle,
SAP DB, PostgreSQL have).
Identity field type isn't the same as sequence manager.
If I'm wrong, please, correct me.
Regards,
Mykola
----- Original Message -----
From: "Andrew Clute" <an...@OSN.state.oh.us>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Wednesday, July 30, 2003 10:45 AM
Subject: Confused about SequenceManager and MSSQL's uniqueidentifier
> We have an existing database that uses GUID's as it's primary key for
across
> all tables. The PK's are defined as uniqueidentifier types, and their
> default value is 'newid()' -- which is a call to generate a new GUID for
> that ID.
>
> My goal is to continue to use this pattern for generation of sequence
> numbers for our implementation of OJB. And if I read it right, that means
I
> want to use the 'database generated sequences' concept in OJB, with the
> SequenceManagerNextValImpl Sequence Manager.
>
> Now, on this page here
> (http://db.apache.org/ojb/howto-use-db-sequences.html), it talks about
> needing to name your database sequences when you create your table (in the
> example it is 'UniqueIdentifier') and that name is then used as the
> attribute 'sequence-name' for the field-descriptor. But in our situation,
> there is really no Sequence defined, with a name associated it, we are
> really just using the default value that the table has associated with it.
>
> So, how would I go about merging the concepts together? Can I use the
> SequenceManagerNextValImpl and not give the sequence-name attribute for
my
> PK field-descriptor -- will it just default then to the value genrated by
> the database?
>
> Thanks in advance!
> -Andrew
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Setup Question
Posted by ro...@bowtech.com.
Have put junit.jar in class path and the following is the repository.xml.
Still get same error.
<?xml version="1.0" encoding="UTF-8"?>
<!-- This is a sample metadata repository for the ObJectBridge System.
Use this file as a template for building your own mappings-->
<!-- defining entities for include-files -->
<!DOCTYPE descriptor-repository SYSTEM "repository.dtd" [
<!ENTITY database SYSTEM "repository_database.xml">
<!ENTITY internal SYSTEM "repository_internal.xml">
<!ENTITY user SYSTEM "repository_user.xml">
]>
<descriptor-repository version="1.0" isolation-level="read-uncommitted">
<!-- include all used database connections -->
&database;
<!-- include ojb internal mappings here -->
&internal;
<!-- include mappings for JUnit tests -->
<!-- This could be removed (with <!ENTITY entry), if junit test suite was
not used -->
<!-- &junit; -->
<!-- include user defined mappings here -->
&user;
<!-- include mappings for the EJB-examples -->
<!-- &ejb; -->
<!-- include mappings for the JDO tutorials -->
<!-- &jdo; -->
</descriptor-repository>
Regards
Ross Rotherham
----- Original Message -----
From: "Armin Waibel" <ar...@code-au-lait.de>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Wednesday, July 30, 2003 12:07 PM
Subject: Re: Setup Question
> Hi,
>
> ----- Original Message -----
> From: <ro...@bowtech.com>
> To: "OJB Users List" <oj...@db.apache.org>
> Sent: Wednesday, July 30, 2003 5:32 PM
> Subject: Setup Question
>
>
> > Am having various issues with setting up OJB.
> >
> > Currently have built cofig files
> > db-ojb-1.0.rc3/schema/project-schema.xml
> > db-ojb-1.0.rc3/docs/user_repository.xml
> > copy of same src/test/org/apache/ojb/user_repository.xml
> >
> > have removed junit, ejb and jdo from repository.xml
> >
>
> I don't think so, because MetadataManager try to load
> > org.apache.ojb.broker.Article
> which is part of junit_repository.xml.
> So take care not to include "unkown" classes in
> repository, or add junit jar to classpath.
>
> regards,
> Armin
>
> > prepare-testdb generates db without issue
> >
> > when I move the class files to my project (struts in tomcat4.1), I
> get the
> > following error which seems to say that the ant main is still reading
> in
> > some of the tutorial/test version?
> >
> > Need help to move past this point.
> >
> > Thanks
> >
> > java.lang.ExceptionInInitializerError:
> java.lang.ClassNotFoundException:
> > org.apache.ojb.broker.Article
> > at
> >
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
> .jav
> > a:1428)
> > at
> >
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
> .jav
> > a:1274)
> > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
> > at java.lang.Class.forName0(Native Method)
> > at java.lang.Class.forName(Class.java:190)
> > at
> org.apache.ojb.broker.util.ClassHelper.getClass(ClassHelper.java:19)
> > at
> org.apache.ojb.broker.util.ClassHelper.getClass(ClassHelper.java:53)
> > at
> >
> org.apache.ojb.broker.metadata.RepositoryXmlHandler.startElement(Reposit
> oryX
> > mlHandler.java:224)
> > at
> >
> org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXPars
> er.j
> > ava:459)
> > at
> >
> org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinde
> r.ja
> > va:572)
> > at
> >
> org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.
> java
> > :727)
> > at
> >
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(X
> MLDo
> > cumentFragmentScannerImpl.java:759)
> > at
> >
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
> patc
> > her.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
> > at
> >
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo
> cume
> > ntFragmentScannerImpl.java:329)
> > at
> >
> org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5
> 25)
> > at
> >
> org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5
> 81)
> > at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
> > at
> >
> org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java
> :111
> > 4)
> > at
> >
> org.apache.ojb.broker.metadata.RepositoryPersistor.buildRepository(Repos
> itor
> > yPersistor.java:296)
> > at
> >
> org.apache.ojb.broker.metadata.RepositoryPersistor.readDescriptorReposit
> ory(
> > RepositoryPersistor.java:207)
> > at
> >
> org.apache.ojb.broker.metadata.MetadataManager.init(MetadataManager.java
> :85)
> > at
> org.apache.ojb.broker.metadata.MetadataManager.(MetadataManager.java:76)
> > at
> org.apache.ojb.broker.metadata.MetadataManager.(MetadataManager.java:67)
> > at
> >
> org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.buildDefa
> ultK
> > ey(PersistenceBrokerFactoryDefaultImpl.java:139)
> > at
> >
> org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.(Persiste
> nceB
> > rokerFactoryDefaultImpl.java:110)
> > at java.lang.Class.newInstance0(Native Method)
> > at java.lang.Class.newInstance(Class.java:232)
> > at
> >
> org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.init(Persiste
> nceB
> > rokerFactoryFactory.java:94)
> > at
> >
> org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.(PersistenceB
> roke
> > rFactoryFactory.java:71)
> > at
> >
> org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(
> Pers
> > istenceBrokerFactory.java:102)
> > at
> >
> com.bowtech.web.actions.SeminarAddAction.execute(SeminarAddAction.java:3
> 4)
> >
> > Regards
> >
> > Ross
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> > For additional commands, e-mail: ojb-user-help@db.apache.org
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Setup Question
Posted by Armin Waibel <ar...@code-au-lait.de>.
Hi,
----- Original Message -----
From: <ro...@bowtech.com>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Wednesday, July 30, 2003 5:32 PM
Subject: Setup Question
> Am having various issues with setting up OJB.
>
> Currently have built cofig files
> db-ojb-1.0.rc3/schema/project-schema.xml
> db-ojb-1.0.rc3/docs/user_repository.xml
> copy of same src/test/org/apache/ojb/user_repository.xml
>
> have removed junit, ejb and jdo from repository.xml
>
I don't think so, because MetadataManager try to load
> org.apache.ojb.broker.Article
which is part of junit_repository.xml.
So take care not to include "unkown" classes in
repository, or add junit jar to classpath.
regards,
Armin
> prepare-testdb generates db without issue
>
> when I move the class files to my project (struts in tomcat4.1), I
get the
> following error which seems to say that the ant main is still reading
in
> some of the tutorial/test version?
>
> Need help to move past this point.
>
> Thanks
>
> java.lang.ExceptionInInitializerError:
java.lang.ClassNotFoundException:
> org.apache.ojb.broker.Article
> at
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.jav
> a:1428)
> at
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.jav
> a:1274)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:190)
> at
org.apache.ojb.broker.util.ClassHelper.getClass(ClassHelper.java:19)
> at
org.apache.ojb.broker.util.ClassHelper.getClass(ClassHelper.java:53)
> at
>
org.apache.ojb.broker.metadata.RepositoryXmlHandler.startElement(Reposit
oryX
> mlHandler.java:224)
> at
>
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXPars
er.j
> ava:459)
> at
>
org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinde
r.ja
> va:572)
> at
>
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.
java
> :727)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(X
MLDo
> cumentFragmentScannerImpl.java:759)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patc
> her.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo
cume
> ntFragmentScannerImpl.java:329)
> at
>
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5
25)
> at
>
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5
81)
> at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
> at
>
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java
:111
> 4)
> at
>
org.apache.ojb.broker.metadata.RepositoryPersistor.buildRepository(Repos
itor
> yPersistor.java:296)
> at
>
org.apache.ojb.broker.metadata.RepositoryPersistor.readDescriptorReposit
ory(
> RepositoryPersistor.java:207)
> at
>
org.apache.ojb.broker.metadata.MetadataManager.init(MetadataManager.java
:85)
> at
org.apache.ojb.broker.metadata.MetadataManager.(MetadataManager.java:76)
> at
org.apache.ojb.broker.metadata.MetadataManager.(MetadataManager.java:67)
> at
>
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.buildDefa
ultK
> ey(PersistenceBrokerFactoryDefaultImpl.java:139)
> at
>
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.(Persiste
nceB
> rokerFactoryDefaultImpl.java:110)
> at java.lang.Class.newInstance0(Native Method)
> at java.lang.Class.newInstance(Class.java:232)
> at
>
org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.init(Persiste
nceB
> rokerFactoryFactory.java:94)
> at
>
org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.(PersistenceB
roke
> rFactoryFactory.java:71)
> at
>
org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(
Pers
> istenceBrokerFactory.java:102)
> at
>
com.bowtech.web.actions.SeminarAddAction.execute(SeminarAddAction.java:3
4)
>
> Regards
>
> Ross
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Setup Question
Posted by ro...@bowtech.com.
Am having various issues with setting up OJB.
Currently have built cofig files
db-ojb-1.0.rc3/schema/project-schema.xml
db-ojb-1.0.rc3/docs/user_repository.xml
copy of same src/test/org/apache/ojb/user_repository.xml
have removed junit, ejb and jdo from repository.xml
prepare-testdb generates db without issue
when I move the class files to my project (struts in tomcat4.1), I get the
following error which seems to say that the ant main is still reading in
some of the tutorial/test version?
Need help to move past this point.
Thanks
java.lang.ExceptionInInitializerError: java.lang.ClassNotFoundException:
org.apache.ojb.broker.Article
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1428)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1274)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at org.apache.ojb.broker.util.ClassHelper.getClass(ClassHelper.java:19)
at org.apache.ojb.broker.util.ClassHelper.getClass(ClassHelper.java:53)
at
org.apache.ojb.broker.metadata.RepositoryXmlHandler.startElement(RepositoryX
mlHandler.java:224)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j
ava:459)
at
org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.ja
va:572)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java
:727)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo
cumentFragmentScannerImpl.java:759)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
ntFragmentScannerImpl.java:329)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:111
4)
at
org.apache.ojb.broker.metadata.RepositoryPersistor.buildRepository(Repositor
yPersistor.java:296)
at
org.apache.ojb.broker.metadata.RepositoryPersistor.readDescriptorRepository(
RepositoryPersistor.java:207)
at
org.apache.ojb.broker.metadata.MetadataManager.init(MetadataManager.java:85)
at org.apache.ojb.broker.metadata.MetadataManager.(MetadataManager.java:76)
at org.apache.ojb.broker.metadata.MetadataManager.(MetadataManager.java:67)
at
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.buildDefaultK
ey(PersistenceBrokerFactoryDefaultImpl.java:139)
at
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.(PersistenceB
rokerFactoryDefaultImpl.java:110)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at
org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.init(PersistenceB
rokerFactoryFactory.java:94)
at
org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.(PersistenceBroke
rFactoryFactory.java:71)
at
org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(Pers
istenceBrokerFactory.java:102)
at
com.bowtech.web.actions.SeminarAddAction.execute(SeminarAddAction.java:34)
Regards
Ross
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org