Re: afterLookUp() gets called before initialisation of other objects.

2005-08-17 Thread Armin Waibel
Hi Ravi, I can't find significant changes between 0.98 and 1.0.x. The main change is, that the target object of the AfterLookupEvent Object was immediately nullified after fire the event (because for better performance OJB reuse the AfterLookupEvent Object and therefore the target object of the

Re: proxy collections locking problem

2005-08-17 Thread Armin Waibel
Hi Jon, > Is this a bug or the intended behavior? I assume a work around would be to > have Child be a proxiable object and remove the Collection proxy from > Parent to Child, but I would rather not if I didn't have to. Much thanks for the detailed description of your problem, this sounds lik

Re: Problem with repository.xml outside war-File

2005-08-17 Thread christine . gerstenmayer
Hi Tom, Guillaume, Bobby, Eric, sorry for the late answer, I was in holiday. We will use the jndi-datasources as described. Many thanks for your quick and helpful support ! Christine PS: Don't worry about the mark "untrusted mail", it's only Lotus Notes :-))

how do i get currval('my_sequence') ?

2005-08-17 Thread Rick Roman
I am trying to retrieve the current value of a sequence. I tried setting the sequence up as a table with currval('my_sequence') as a column /> Criteria criteria = new Criteria(); QueryByCriteria query = new QueryByCriteria(MySeqDb.class, criteria); MySeqDb ms_db=(MySeqDb

Re: how do i get currval('my_sequence') ?

2005-08-17 Thread Armin Waibel
Hi Rick, I never tried this before with OJB. Think PostgreSQL expects something like "select currval 'my_seq'" So the easiest way will be a plain sql-query within OJB http://db.apache.org/ojb/docu/guides/connection.html#Can+I+directly+obtain+a%0A The problem with your mapping can

Re: how do i get currval('my_sequence') ?

2005-08-17 Thread Rick Roman
Thanks. The plain sql-query works. note: It throws an error if I close the connection: con.close(); Does OJB to take care of this? Armin Waibel wrote: Hi Rick, I never tried this before with OJB. Think PostgreSQL expects something like "select currval 'my_seq'" So the easiest way will be

Re: how do i get currval('my_sequence') ?

2005-08-17 Thread Armin Waibel
Rick Roman wrote: Thanks. The plain sql-query works. note: It throws an error if I close the connection: con.close(); Does OJB to take care of this? yep! Please read the 'note' in "Can I directly obtain a java.sql.Connection within OJB?" http://db.apache.org/ojb/docu/guides/connection.htm

Re: proxy collections locking problem

2005-08-17 Thread jon_french
Thanks Armin, I'll update to the latest and give it a try. best, Jon French Programmer ECOS Development Team [EMAIL PROTECTED] 970-226-9290 Armin Waibel <[EMAIL PROTECTED]> 08/17/2005 07:56 AM Please respond to "OJB Users List" To OJB Users List cc Subject Re: proxy collections loc