Re: Which version of HSQLDB that OJB use

2003-08-04 Thread Thomas Mahler
I think we are using 1.7.1 too. Wara Songkran wrote: Hi. I just curious about version of HSQLDB in ojb rc4 beacause I use HSQLDB ver1.7.1 an Database manager does not look like in ojb. cheers. - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site de

Re: Error reading repository.xml

2003-08-04 Thread Ketan Gangatirkar
Norival, The XML parser is looking for a protocol for the DTD URI in the DOCTYPE declaration. I don't know how to do relative URIs in this context, so I've used absolute URIs like: file:///c:/obj/repository.dtd. No doubt there's a better way, but this will at least get you unstuck. Norival N

Re: Example usage of MetaObjectCachePerClassImpl

2003-08-04 Thread Armin Waibel
Hi Akhil, > Hi, > > Can somebody (Armin ?) share an example of using > MetaObjectCachePerClassImpl > > I did a search (not very exhaustive though) and found only one test case: > "org.apache.ojb.broker.ObjectCacheTests" > which uses this cache but it does not demonstrate how to use... > > my quest

RE: newbie question

2003-08-04 Thread Jim Moore
You should generally let the database set the OID for an object. If you load the object, the OID is set and therefore it will do an UPDATE when storing. If it's new, the OID is empty and therefore will do an INSERT. If you provide an OID for a new object (for example, get a value manually from a

generating DDL from repository.xml

2003-08-04 Thread Durham David Contr 805 CSS/SCBE
I would like to generate the DDL from the class-definitions in repository.xml. I see that the unit tests that come with OJB use Torque to generate DDL. Is there a way to take the repository.xml and run it through Torque? It seems like a transformation might be in order to take the data from th

Re: newbie question

2003-08-04 Thread Ron Gallagher
Anthony -- There are two versions of the store method provided by the PersistenceBroker store(Object) store(Object,ObjectModification) It appears that you're using the first version. In this case, ojb will first do a select against your db to see if the record exists. If it does, then ojb wil

newbie question

2003-08-04 Thread Anthony E. Carlos
Hello all, I'm using the PB API and can store a simple object to a table. Even though table has a primary key constraint on the id column, if I try to store a different object with the same id, there is no primary key constraint violation. In fact, OJB _UPDATES_ the existing matching row in th

Re: Associating an outer join with a value for a report

2003-08-04 Thread Jakob Braeuchi
hi jim, ojb only uses joins based on relationships, not on simple values ! unfortunately the query customizer can be used for 1:n and m:n queriies only. it's called in PersitenceBrokerImpl#getFKQuery. any help will be appreciated. jakob Jim Moore wrote: Btw: I don't just gripe without being w

Re: Problems with getObjectByIdentity

2003-08-04 Thread Ron Gallagher
Norival -- Make sure you're using the latest version of OJB.properties from cvs. There is a new configuration setting for "StatementsForClassClass" that is not present in the OJB.properties file that you are using. Ron Gallagher Atlanta, GA [EMAIL PROTECTED] -Original Message- From: N

Problems with getObjectByIdentity

2003-08-04 Thread Norival Neri Junior
Hi all, I am trying to run a ojb hello world but the method getObjectByIdentity doesnt work because the error happens: org.apache.ojb.broker.PersistenceBrokerException: ConfigurableFactory configuration key class for key'StatementsForClassClass' does not exist. at org.apache.ojb.broker

Re: cache refresh not working for ObjectCacheDefaultImpl

2003-08-04 Thread Jonathan Gordon
paul miller wrote: > I have a table that gets updated via an external process. > So I always want to look these values from the database. > > I set refreash="true" in the repository_user.xml's - > class="com.company.dbBeans.foo" >table="FOO" >refreash="tru

Re: IllegalStateException in DelegatingPersistenceBroker.getBroker

2003-08-04 Thread Armin Waibel
Hi Tom, do all odmg junit tests pass? Now OJB is more strict in handling PB instances. If PB.close() was called on a given instance no further method calls can be done. Your sample code seems ok, thus it sounds like a bug. regards, Armin - Original Message - From: "Thomas Dudziak" <[EMAI

Re: Read the repository mapping file from outside

2003-08-04 Thread Armin Waibel
Hi, start OJB (rc4 or CVS) with an "empty" repository, see http://db.apache.org/ojb/faq.html section: Start OJB without a repository file? Then use MetadataManager to read metadata from an InputStream public ConnectionRepository readConnectionRepository(InputStream inst) public DescriptorReposit

Re: Startup Cache

2003-08-04 Thread Armin Waibel
Hi Jason, - Original Message - From: "Jason McKerr" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Monday, August 04, 2003 6:58 PM Subject: Startup Cache > Hey all, > > I'm basically trying to "start" the cache at startup time in a J2EE > application server. > >

UPDATE: OSCache with OJB -- How To

2003-08-04 Thread Jason McKerr
I've updated this mail to reflect the new release (Beta 2) of OSCache that Chris Miller et al have released today. It includes some important changes/fixes for using OSCache as your clustered cache in OJB. Some notes: 1) I've tested OSCache/OJB so far with the Javagroups multicast communications

Which version of HSQLDB that OJB use

2003-08-04 Thread Wara Songkran
Hi. I just curious about version of HSQLDB in ojb rc4 beacause I use HSQLDB ver1.7.1 an Database manager does not look like in ojb. cheers. - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software

RE: Error reading repository.xml

2003-08-04 Thread oliver . matz
Hello Norival, > -Original Message- > From: Norival Neri Junior [mailto:[EMAIL PROTECTED] there was a thread about this issue 5 weeks ago. (search for 'protocol' in the subject). Try the workarounds mentioned there. Olli --

RE: Associating an outer join with a value for a report

2003-08-04 Thread Jim Moore
Btw: I don't just gripe without being willing to do anything about it. If someone can confirm that this is in fact a bug and not intended functionality, I'll take a look at what it would take to fix... -Jim Moore -Original Message- From: Jim Moore Sent: Sunday, August 03, 2003 10:36 PM

Error reading repository.xml

2003-08-04 Thread Norival Neri Junior
I starting in OJB now and found problems: [BOOT] ERROR: Error in instantiation of PersistenceBrokerFactory class Could not read repository class descriptor data, using repository: repository.xml: no protocol: repository.dtd If file repository.dtd and repository.xml are at the same directory, wha

Startup Cache

2003-08-04 Thread Jason McKerr
Hey all, I'm basically trying to "start" the cache at startup time in a J2EE application server. Is there a method somewhere that I can call that will instantiate the cache that is defined by ObjectCacheClass in the OJB.properties file? Jason -

Questions about OMDG test case PersonWithArrayTest.testStoreThreePersons

2003-08-04 Thread Thomas Dudziak
(me again ;-) I'm still "toying" with the ODMG implementation and I stumbled upon something strange (at least in my eyes). While working through the ODMG testcases, I noticed that when I change the PersonWithArrayTest.testStoreThreePersons test a slightly bit from Transaction tx = odmg.new

Postgresql Clobs, SQLException: Unknown Types value

2003-08-04 Thread Marcus Geiger
Hi there, I'am fairly new to OJB and try to get my feet on it. My problem is, that I can't get Clobs working. The software I use: - OJB-1.0.rc4 - postgresql-7.3.3_1 - FreeBSD 5.1-RELEASE - JDK-1.4.1 (native). I get the following error when trying to insert Clob data: org.postgresql.jdbc1.Abstrac

Re: Read the repository mapping file from outside

2003-08-04 Thread Danilo Tommasina
Instead of writng own java code for parsing the repository.xml, you can customise the velocity templates for ojb and run the ant task 'project-om' in build-torque.xml So you can generate and format the java code as you want. > hi all, > I am a new comer to ojb world and I got some problem with th

IllegalStateException in DelegatingPersistenceBroker.getBroker

2003-08-04 Thread Thomas Dudziak
While doing a OMDG query like this (after some other committed transactions): OQLQuery queryObj = _odmg.newOQLQuery(); String query= ... // some basic select _tx.begin(); queryObj.create(query); DList result = (DList)queryObj.execute(); _tx.commit(); I get an IllegalStateException thrown i

Read the repository mapping file from outside

2003-08-04 Thread Pushpaka Rambukkanage
hi all, I am a new comer to ojb world and I got some problem with the ojb mapping file reading. I need to read the repository.xml, repository_user.xml,.. files from a java code. it is to create a object hierarchy from the mappings and do some processing on them my problem is how the obj read t

delete on indirection-table

2003-08-04 Thread Roland Carlsson
Hi! I have a problem with deleteing relations hold in an indirection-table for an mxn relation. The problem is that it not only deletes the affected row in the indirection-table but also the row in the n-table. So when delete a relation I remove every relation that comes from that n-table row. H

nested queries, collection fields, and projections

2003-08-04 Thread oliver . matz
Hello, apart from my previous posting concerning nested queries with subqueries over extents, I have some more questions about nested queries. In the method Criteria.addIn(String attributeName, Query subQuery) is the specified attribute allowed to be a collection attribute? (The method is not

Re: Question on Primary Keys

2003-08-04 Thread Danilo Tommasina
thanks for the fast reply ok, I see however i am not using primitives for my PKs and FKs and I use sequence managers for PK generation. Now, if i try to store an Object A that contains a reference to another EXISTING Object B with PK = 0, then OJB tries to store Object A and B, however since B

RE: Question on Primary Keys

2003-08-04 Thread Charles Anthony
Hi, I believe it is possible *only* if you do not use a primitive to hold the primary key. In order to assign primary keys, OJB need to know if an object needs a key. If the key is stored as an Object e.g. Long, Integer, BigInteger etc then it checks to see if the attribute is null. If, however,

Question on Primary Keys

2003-08-04 Thread Danilo Tommasina
Hi, since nobody answered my previous posts, i'll try to simplfy my questions :) Is it possibile with OJB (rc4) to use numeric primary key with value = 0? Is it possible to use a nullable foreign key (optional reference) that references an other table's primary key with value = 0? If your answer