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 Joose Vettenranta <jo...@iki.fi> on 2004/07/22 14:33:03 UTC

Example of 1:n

Hi,

is there anywhere working example how 1-to-many relation should work?

I have now tried 3days to get it to work and I'm not able to get it to 
work.

Thanks, Joose

--
"Always remember that you are unique, just like everyone else!"
* http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: Example of 1:n

Posted by Joose Vettenranta <jo...@iki.fi>.
Well, I was happy too early.

It seems like it does the insert in different order on different run. I 
updated both result on webpage.

Sometimes it does INSERT child first and sometimes INSERT parent first.

Seems like ojb is not working correctly or I have something wrong 
somewhere.

(I also removed access="readonly" from repository.xml)

- Joose

23.7.2004 kello 18:37, Joose Vettenranta kirjoitti:

  I got it to work little better. I had to change package.jdo, but now 
in DELETE it goes not so well...
>
> (I'll update webpage in few minutes)
>
> - Joose
>
> 23.7.2004 kello 18:22, Joose Vettenranta kirjoitti:
>
>  Hi,
>>
>> I forgot to say, that I think the problem is in repository.xml or in 
>> packages.jdo but what I've seen and tried, the problem can be in 
>> cosmic radiation.
>>
>> - Joose
>>
>>  Hello!
>>>
>>> I did summary to the web: http://joose.iki.fi/ojb/
>>>
>>> I'm using version 1.0rc6 of ojb
>>>
>>> There should be every source code and configuration file and log 
>>> files from the test run.
>>>
>>> If you can help me to make that work, I'll buy you a beer when you 
>>> are in Finland next time =)
>> --
>> "Always remember that you are unique, just like everyone else!"
>> * http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>> For additional commands, e-mail: ojb-user-help@db.apache.org
>>
>>
> --
> "Always remember that you are unique, just like everyone else!"
> * http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
--
"Always remember that you are unique, just like everyone else!"
* http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: Example of 1:n

Posted by Joose Vettenranta <jo...@iki.fi>.
I got it to work little better. I had to change package.jdo, but now in 
DELETE it goes not so well...

(I'll update webpage in few minutes)

- Joose

23.7.2004 kello 18:22, Joose Vettenranta kirjoitti:

  Hi,
>
> I forgot to say, that I think the problem is in repository.xml or in 
> packages.jdo but what I've seen and tried, the problem can be in 
> cosmic radiation.
>
> - Joose
>
>  Hello!
>>
>> I did summary to the web: http://joose.iki.fi/ojb/
>>
>> I'm using version 1.0rc6 of ojb
>>
>> There should be every source code and configuration file and log 
>> files from the test run.
>>
>> If you can help me to make that work, I'll buy you a beer when you 
>> are in Finland next time =)
> --
> "Always remember that you are unique, just like everyone else!"
> * http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
--
"Always remember that you are unique, just like everyone else!"
* http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: Example of 1:n

Posted by Joose Vettenranta <jo...@iki.fi>.
Hi,

I forgot to say, that I think the problem is in repository.xml or in 
packages.jdo but what I've seen and tried, the problem can be in cosmic 
radiation.

- Joose

  Hello!
>
> I did summary to the web: http://joose.iki.fi/ojb/
>
> I'm using version 1.0rc6 of ojb
>
> There should be every source code and configuration file and log files 
> from the test run.
>
> If you can help me to make that work, I'll buy you a beer when you are 
> in Finland next time =)
--
"Always remember that you are unique, just like everyone else!"
* http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: Example of 1:n

Posted by Joose Vettenranta <jo...@iki.fi>.
Hello!

I did summary to the web: http://joose.iki.fi/ojb/

I'm using version 1.0rc6 of ojb

There should be every source code and configuration file and log files 
from the test run.

If you can help me to make that work, I'll buy you a beer when you are 
in Finland next time =)

Thanks, Joose

23.7.2004 kello 13:44, Brian McCallister kirjoitti:

  O/R mapping in general is complex =) Don't sweat the learning curve.
>
> Once I get some breakfast I'll look over your config and see if I can 
> see anything.
>
> -Brian
>
> On Jul 23, 2004, at 6:16 AM, Joose Vettenranta wrote:
>
>> Thanks,
>>
>> I got that and tried to implemet thing according to that file, but 
>> still not getting simple 1:n to work.
>>
>> I have also read the basic-technique.html file many times from top to 
>> bottom, bottom to top left to right and right to left.. With search 
>> with copy-pasting and I think I even tried calling ghostbusters to 
>> come and help me to get this simple 1:n relation to work -> but no 
>> luck.
>>
>> Eather this is very very complex thing or I'm just stupid and can't 
>> even implement something this simple.
>
--
"Always remember that you are unique, just like everyone else!"
* http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: Example of 1:n

Posted by Brian McCallister <mc...@forthillcompany.com>.
O/R mapping in general is complex =) Don't sweat the learning curve.

Once I get some breakfast I'll look over your config and see if I can 
see anything.

-Brian

On Jul 23, 2004, at 6:16 AM, Joose Vettenranta wrote:

> Thanks,
>
> I got that and tried to implemet thing according to that file, but 
> still not getting simple 1:n to work.
>
> I have also read the basic-technique.html file many times from top to 
> bottom, bottom to top left to right and right to left.. With search 
> with copy-pasting and I think I even tried calling ghostbusters to 
> come and help me to get this simple 1:n relation to work -> but no 
> luck.
>
> Eather this is very very complex thing or I'm just stupid and can't 
> even implement something this simple.
>
> - Joose
>
> 22.7.2004 kello 15:57, Brian McCallister kirjoitti:
>
>  I have a bunch of sample code online from a presentation I gave a few 
> months ago. It includes different relation types, and IIRC, 
> class-per-table inheritance.
>>
>> http://kasparov.skife.org/ojb-phillyjug.tar.gz
>>
>> -Brian
>>
>> On Jul 22, 2004, at 8:52 AM, Thomas Dudziak wrote:
>>
>>> Joose Vettenranta wrote:
>>>
>>>> is there anywhere working example how 1-to-many relation should 
>>>> work?
>>>>
>>>> I have now tried 3days to get it to work and I'm not able to get it 
>>>> to work.
>>>
>>> Have you checked the documentation:
>>>
>>> http://db.apache.org/ojb/docu/guides/basic-technique.html
>>
> --
> "Always remember that you are unique, just like everyone else!"
> * http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *
>
>
> ---------------------------------------------------------------------
> 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: Example of 1:n

Posted by Joose Vettenranta <jo...@iki.fi>.
Thanks,

I got that and tried to implemet thing according to that file, but 
still not getting simple 1:n to work.

I have also read the basic-technique.html file many times from top to 
bottom, bottom to top left to right and right to left.. With search 
with copy-pasting and I think I even tried calling ghostbusters to come 
and help me to get this simple 1:n relation to work -> but no luck.

Eather this is very very complex thing or I'm just stupid and can't 
even implement something this simple.

- Joose

22.7.2004 kello 15:57, Brian McCallister kirjoitti:

  I have a bunch of sample code online from a presentation I gave a few 
months ago. It includes different relation types, and IIRC, 
class-per-table inheritance.
>
> http://kasparov.skife.org/ojb-phillyjug.tar.gz
>
> -Brian
>
> On Jul 22, 2004, at 8:52 AM, Thomas Dudziak wrote:
>
>> Joose Vettenranta wrote:
>>
>>> is there anywhere working example how 1-to-many relation should work?
>>>
>>> I have now tried 3days to get it to work and I'm not able to get it 
>>> to work.
>>
>> Have you checked the documentation:
>>
>> http://db.apache.org/ojb/docu/guides/basic-technique.html
>
--
"Always remember that you are unique, just like everyone else!"
* http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: Example of 1:n

Posted by Brian McCallister <mc...@forthillcompany.com>.
I have a bunch of sample code online from a presentation I gave a few 
months ago. It includes different relation types, and IIRC, 
class-per-table inheritance.

http://kasparov.skife.org/ojb-phillyjug.tar.gz

-Brian

On Jul 22, 2004, at 8:52 AM, Thomas Dudziak wrote:

> Joose Vettenranta wrote:
>
>> is there anywhere working example how 1-to-many relation should work?
>>
>> I have now tried 3days to get it to work and I'm not able to get it 
>> to work.
>
> Have you checked the documentation:
>
> http://db.apache.org/ojb/docu/guides/basic-technique.html
>
> Tom
>
>
> ---------------------------------------------------------------------
> 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: Example of 1:n

Posted by Thomas Dudziak <to...@first.fhg.de>.
Joose Vettenranta wrote:

> is there anywhere working example how 1-to-many relation should work?
>
> I have now tried 3days to get it to work and I'm not able to get it to 
> work.

Have you checked the documentation:

http://db.apache.org/ojb/docu/guides/basic-technique.html

Tom


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org