3rd REPOST:OJB:Dynamic association and Colored graph

2004-04-13 Thread Ajitesh Das
All: I have a design question. Let me first describe the problem: I like to store, update, delete, and retrieve a graph where the nodes are colored differently - for e.g. red, blue, yellow, green, black, etc. etc. [A new color could be added in future] The graph will be constructed at runtime.

RE: HSQLDB Issue

2004-04-13 Thread Charles Anthony
-Original Message- From: Thomas Mahler [mailto:[EMAIL PROTECTED] Sent: 12 April 2004 07:06 To: OJB Users List Subject: Re: HSQLDB Issue [...] The other issue is that I can't seem to find a way to get OJB to find the hsqldb script and data files directly within the exploded

Re: OJB possible bug when using automatical assignment of uniquevalues on Postgres

2004-04-13 Thread Martin I. Levi
On Wed, 2004-04-07 at 13:27, Antonio Gallardo wrote: I think you can upgrade since there are not too complicated changes. BTW, I worked without problems with PostgreSQL and RC5. As Thomas suggested you, I think the problem is related the lack of a sequencer. Take a look in a simple sequencer

Re: JDO - getObjectId, how to retrieve the id of identity obj after insert

2004-04-13 Thread Philippe Guillard
Hi Thomas, thank you very much for your prompt response. I've tried to put this very line before the commit of transaction, and the error is not given any more, but the id of bean2 still can't be got.(id = 0 got ) Object oid = pm.getObjectId(bean); Department bean2 = (Department)

RE: Newbie Question : OTM or ODMG

2004-04-13 Thread Daniel Perry
From my experience of using both (i ended up doing an ODMG - OTM conversion!): Note that i dont any of the more complicated stuff - just storing object trees, collections, etc, and querying the database. Also i dont use locking atall (one thing odmg does better i believe). Go with OTM. ODMG

Re: Newbie Question : OTM or ODMG

2004-04-13 Thread Brian McCallister
Huh, the ODMG slower thing is interesting as Armin just reemed us all out for letting the OTM get so much slower than ODMG ;-) Right now there are a couple hidden nasties in the OTM -- I like the OTM a lot (if just so that I can do a query by identity without casting to a TransactionImpl) but

Re: HSQLDB Issue

2004-04-13 Thread Robert S. Sfeir
Hum won't quite work, but I am still concerned that I can't get an insert to work with hsqldb, so something is haywire with my DB somewhere because my code works with other DBs (Postgresql, MySQL and oracle). Anyone have ANY clues as to what my be happening? R Charles Anthony wrote:

RE: HSQLDB Issue

2004-04-13 Thread Janssen, Roger
hi, be also aware that HSQLDB in 'stand-alone' mode only allows one connection! If you use the database in this mode, you may only have one and only one persistencebroker instantiated at any time! I don't know if this has got anything to do with your problem though Roger Janssen iBanx

documention info in MetadataManager

2004-04-13 Thread Stefan Sayk
Hello again, I've a problem access data in repository.xml. Is it possible get the documentation infos 'xxx' and 'yyy' by the org.apache.ojb.broker.metadata.MetadataManager class-descriptor class=ClassA table=CL_A

Re: HSQLDB Issue

2004-04-13 Thread Robert S. Sfeir
Janssen, Roger wrote: hi, be also aware that HSQLDB in 'stand-alone' mode only allows one connection! If you use the database in this mode, you may only have one and only one persistencebroker instantiated at any time! I don't know if this has got anything to do with your problem though

RE: Newbie Question : OTM or ODMG

2004-04-13 Thread Daniel Perry
Sorry i was being a bit dense early morning after a very long weekend! My app has a huge amount of db activity, and 99.9% of it doesnt require locking (concurrent actions on the same objects will never happen as users only share read-only objects) So i mainly use the Persistance Broker api

Re: Problems saving a m:n relationship

2004-04-13 Thread Stijn de Witt
Hi Armin, all, I have tried your solutions, but I ran into a problem, because I was working with rc4. ojb rc4 doesn't have the .link() method in the ServiceBrokerHelper yet. So I downloaded rc6, ran the ojb-blank target, inserted my files and created a rc6-version of my project. I got it all to

Re: 3rd REPOST:OJB:Dynamic association and Colored graph

2004-04-13 Thread Robert r. Sanders
I think you are asking a broader question. First, do the Colored nodes need be seperate subclasses? why not ColoredNode exetends Node: { color, p1,p2,p3}, Also, are the properties actally differernt properties, or just different values. I think you can store the Nodes using OJB, or any other

HowToDo INTERSECT query

2004-04-13 Thread Glenn Barnard
I need to perform the following SQL query against my db. Can anyone steer me in the right direction? SELECT * FROM keywords WHERE keyword_id IN ( SELECT keyword_id FROM listing_keywords WHERE listing_id=3289923 AND location_id=1007869 intersect SELECT keyword_id FROM listing_keywords WHERE

RE: Japanese Support

2004-04-13 Thread Sukesh Garg
Hi Matthew, I converted the NON-ASCII Strings into ASCII Strings using UTF8 byte array. Enclosed is the code snippet I used.. byte[] nameByte = name.getBytes(UTF8); this.name = new String(nameByte, 8859_1); To retrieve the Japanese characters, I had to do the reverse.

RE: addEqualTo throws Exception on 2-deep reference-descriptor

2004-04-13 Thread Phil Armour
Update part 2: I now believe this to be a bug. I am currently using rc5. I have debugged and ended up replacing the line that retrieves the base_alias in the buildSuperJoinTree method of SqlQueryStatement. My code is in between the *** rows. I have not tested it thoroughly nor

Re: Primary Key from Insert

2004-04-13 Thread Glenn Barnard
Armin, I'm happy to report that version rc6 fixed my problem. Am now getting the primary key returned in the data object upon insert with MS SQL Server. I can now proceed full steam ahead with my development. Thanks for your help a few weeks back. From: Armin Waibel [EMAIL PROTECTED]

Re: Newbie Question : OTM or ODMG

2004-04-13 Thread Oleg Nitz
On Tuesday 13 April 2004 15:17, Brian McCallister wrote: Huh, the ODMG slower thing is interesting as Armin just reemed us all out for letting the OTM get so much slower than ODMG ;-) Have I missed something? Are there any new performance tests? When I tested last time, OTM was somewhat faster.

Re: PhillyJUG OJB Slides

2004-04-13 Thread C Qualset
Thanks very much for posting the slides. It is a great place for a newbie like me to start. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

ODMG API Question

2004-04-13 Thread Wil Hunt
Hey guys, I'm having a problem with regard to OJB-managed objects and their visibility. Here's the scenario: 1) Create a new object: Task task = new Task(...); Transaction tx = _odmg.newTransaction(); tx.begin(); tx.lock(task, Transaction.WRITE); tx.commit(); Note: task is saved

Newbie needs help with OJB in Eclipse

2004-04-13 Thread Doug Poland
Hello, I'm trying to learn OJB but am struggling getting a simple project to run in Eclipse 2.1.3. I found what appears to be a good tutorial entitled... Object-Relational Mapping with Apache Jakarta OJB by Charles Chan (http://www.onjava.com/lpt/a/2946) dated: 01/08/2003 I've