Re: 0.9.9 doesn't build

2003-02-17 Thread Hiran Chaudhuri
Maybe the build script (ant) could check for existence and make verbose messages like "The file lib\foo.jar" ist still missing. Please download it from http://www.foo.org";...? A readme must be read, and anyone just trying to build will spend time searching the error, but if such build error occur

Collection iteration after auto filled select

2003-02-17 Thread Robert S. Sfeir
Ok just finally hit the massive power behind OJB, and it seems to be working except I'm a bit confused on how to get data from one part. I followed the examples in Tutorial 3 of Manual Decomposition of 1:n. I have 3 tables: Home Brokers BrokersToHomes I have setup the repository xml accordin

RE: newbie problem

2003-02-17 Thread Muhammad Ashikuzzaman
Thank you very much Thomas. I needed that jar file and it was in my lib! I don't know how did I miss that file Anyway, thank you again. = Muhammad Ashikuzzaman Programmer, Spectrum Engineering Consortium Ltd. -Original Message- From: [EMAIL PROTECTED] [mailto:[EM

RE: 1:1 associations, can't get it to work

2003-02-17 Thread Mark H
>If you change the "field-id-ref" on the first "foreignkey" entry from "1" to "2", you should see >better results. Thanks for that Ron, it now seems to be working. From what I can see field-id-ref seems to refer to the nth field element rather than the field with matching id, which is a little con

Re: 1:1 associations, can't get it to work

2003-02-17 Thread Ron Gallagher
Mark -- Based on the snippet from your repository.xml, it appears that you're linking the "Interaction" and "User" classes together via the "id" property on the "Interaction" class. When OJB 'resolves' "foreignkey" entries within a "reference-descriptor", it uses the value of the property tha

1:1 associations, can't get it to work

2003-02-17 Thread Mark H
I know this has been asked many times before but there doesn't seem to be any answers that work in the archives. I spent the whole day trying to get it to work. When I retrive the object, the referenced object (user) is set to null, any ideas? Also is it possible to insert a new 1:1 association obj

Re: 0.9.9 doesn't build

2003-02-17 Thread Robert S. Sfeir
For what it's worth, if I'm running in Struts using JDK 1.4.1, I only need 2 jars from the OJB package, the ojb.jar and the antlr.jar beyond that it seems that everything else is included either in the Struts package or in the JDK. On Monday, Feb 17, 2003, at 15:35 US/Eastern, Thomas Mahler wr

Re: Problem with HighLowSequence under 0.9.9 and 0.9.8

2003-02-17 Thread Armin Waibel
OK, the problem is that the PB used in the SequenceGenerator seems to be in a transaction. Do you direct use a ConnectionManager instance in your code base? Do you use the PB in the standard way: Per thread a PB. Close PB after work is done? Could you post the code snip where the error occurred. r

Re: Problem with HighLowSequence under 0.9.9 and 0.9.8

2003-02-17 Thread Gerardo Arroyo
Hi Armin, I checked all the new configuration files (OJB.properties, repository_internal.xml, etc). I already had all the files up to date. So, I follow your advice and try to use the SequenceManagerInMemoryImpl. With this new SequenceManager I don't have any problem, and everything work smoothly

Re: newbie problem

2003-02-17 Thread Thomas Mahler
Hi Muhammad, please download the binary distribution, and follow the steps of the file doc/quickstart.html. You should also consider to read the other getting started tutorials and the faq on the site or as shipped with the distribution under doc. The jar you are looking for is lib/jakarta-ojb

Re: 0.9.9 doesn't build

2003-02-17 Thread Thomas Mahler
Hi again Chris, You will have noticed, that the mentioned jars (and some others) are include in the actual 0.9.9 relase. We are currently preparing for a completely apache hosted distribution. We are not allowed to have jars with certain licenses (GPL, LPGL, SUN binary code license) in CVS or in

Re: 0.9.9 doesn't build

2003-02-17 Thread Chris Rossi
Chris Rossi wrote: ok. i'll see if i can pull latest. > ok i've pulled the latest from CVS and can't build because it can't find some libraries: javax.servlet.* javax.transaction.* javax.sql.* javax.ejb.* maybe one or two others i didn't notice just now scrolling through the build

Re: reverse-db (yet again)

2003-02-17 Thread Jeremy
Ricardo Tercero Lozano wrote: Hi Jeremy, I got it working yesterday. I am using MySQL 4.0.9 and connector 2.0.14. Just drop connector jar on lib directory and executed reverse-db tool. All works fine, beans and xml was generated successfully. Ricardo. Wow, I did same thing, dropped connecto

Re: Enhancement request before 1.0

2003-02-17 Thread Robert S. Sfeir
bingo, Thanks Jakob for taking care of this. I was about to start compiling, but now I can go back to doing my work :-) R On Monday, Feb 17, 2003, at 13:03 US/Eastern, Jakob Braeuchi wrote: hi robert, thomas, the npe occurs at query.getCriteria() because the query is null due to the parsin

Re: 0.9.9 doesn't build

2003-02-17 Thread Chris Rossi
Thomas Mahler wrote: Hi Chris, Chris Rossi wrote: main: jar-debug: BUILD FAILED file:/usr/local/java/jakarta-ojb-0.9.9/build.xml:318: Warning: Could not find file /usr/local/java/jakarta-ojb-0.9.9/src/etc/MANIFEST.MF to copy. I'll have a look at this. Actually, my mistake. I downloaded

Re: Problem with HighLowSequence under 0.9.9 and 0.9.8

2003-02-17 Thread Armin Waibel
Hi Gerardo, between 0.9.8 and 0.9.9 many changes were made. Now field descriptor id was no longer used, see examples in repository files (in particular reference-descriptor, use foreignkey field-ref). Do you really update all configuration files (OJB.properties, repository_internal.xml, ...)? If

Re: Enhancement request before 1.0

2003-02-17 Thread Jakob Braeuchi
hi robert, thomas, the npe occurs at query.getCriteria() because the query is null due to the parsing problem: .. OQLParser parser = new OQLParser(lexer); query = parser.buildQuery(); setBindIterator(flatten(query.getCriteria(), new Vector()).listIterator()); <

Re: 0.9.9 doesn't build

2003-02-17 Thread Thomas Mahler
Hi Chris, Chris Rossi wrote: main: jar-debug: BUILD FAILED file:/usr/local/java/jakarta-ojb-0.9.9/build.xml:318: Warning: Could not find file /usr/local/java/jakarta-ojb-0.9.9/src/etc/MANIFEST.MF to copy. I'll have a look at this. Total time: 3 seconds Also, "More CVS infos" link takes m

Problem with HighLowSequence under 0.9.9 and 0.9.8

2003-02-17 Thread Gerardo Arroyo
Hi, I am having some problems with OJB 0.9.8 and 0.9.9. The problems is a [org.apache.ojb.broker.util.sequence.SequenceGenerator] ERROR: Can not get next org.apache.ojb.broker.util.sequence.HighLowSequence for next scope of keys null everytime that I attempt to insert a new record on a table, I

0.9.9 doesn't build

2003-02-17 Thread Chris Rossi
main: jar-debug: BUILD FAILED file:/usr/local/java/jakarta-ojb-0.9.9/build.xml:318: Warning: Could not find file /usr/local/java/jakarta-ojb-0.9.9/src/etc/MANIFEST.MF to copy. Total time: 3 seconds Also, "More CVS infos" link takes me to jakarta site with instructions for getting OJB from ja

Question about loading from Class Heirarchies

2003-02-17 Thread David . Corbin
I have have a class hearirchy, B, with derived classes D1, D2 & D3, where each class is mapped to a seperate table. B is declared with extends for all the Ds. When I say "load B for OID=7", can someone sumarize for me the what queries are likley to occur? At the moment, we're using ODMG, but I'

RE : How to handle OJB.properties on IBM Webspher 5.0?

2003-02-17 Thread Jean-Baptiste BRIAUD
Depending of tools you are using to develop. Generally speaking you can add to your project a "special" folder nammed etc for example. Put inside any property file you want. Add this folder to the list of sources folder. It will be copied to bin or classes folder as if it was sources. You'll found

Archive Link problem on website

2003-02-17 Thread David . Corbin
The link to the archive of the developer's email list for OJB is "wrong". Well, it may be the archive that's wrong, because it's still seems to be identified as "[EMAIL PROTECTED]", instead of "[EMAIL PROTECTED]". Just an FYI to be passed on to the appropriate admin David This message conta

OJB 0.9.9: auto-retrieve of referenced attributes

2003-02-17 Thread Juergen Sonnauer
Hi! We moved from OJB 0.9.7 to 0.9.9 and are experiencing problems concerning auto-retrieval of referenced attributes for a 1:1 association. The referenced attributes are not automatically loaded, if we create a new persistent object in one transaction and retrieve it in another transaction. The cl

newbie problem

2003-02-17 Thread Muhammad Ashikuzzaman
Dear Pals, I was following the O’Reilly tutorial on OJB. But the file I attached with this mail does not compile because the compiler can’t find PersistenceBrokerFactory and QueryFactory class. I have tested the torque-3.0.jar file but it does not contain these two classes. Which jar file

newbie problem

2003-02-17 Thread Muhammad Ashikuzzaman
Dear Pals, I was following the O’Reilly tutorial on OJB. But the file I attached with this mail does not compile because the compiler can’t find PersistenceBrokerFactory and QueryFactory class. I have tested the torque-3.0.jar file but it does not contain these two classes. Which jar file

newbie problem

2003-02-17 Thread Muhammad Ashikuzzaman
Dear Pals, I was following the O’Reilly tutorial on OJB. But the file I attached with this mail does not compile because the compiler can’t find PersistenceBrokerFactory and QueryFactory class. I have tested the torque-3.0.jar file but it does not contain these two classes. Which jar file

RE: StatementManager and field conversions of primary key values

2003-02-17 Thread Mark Rowell
Er, I definitely attached the files to the original email to the list so I assume thatthe mail list software filters attachments out when it sends mails to everyone the list? Mark -Original Message- From: Mark Rowell [mailto:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 11:22 AM To:

StatementManager and field conversions of primary key values

2003-02-17 Thread Mark Rowell
Hi I recently upgraded (today!) from version 0.9.6 to 0.9.9 and I forgot that I patched StatementManager to use field converters for primary key values. I have repatched it for version 0.9.9 and hopefully someone more familiar with the codebase can take a look at the attached patched version for c

newbie problem

2003-02-17 Thread Muhammad Ashikuzzaman
Dear Pals, I was following the O’Reilly tutorial on OJB. But the file I attached with this mail does not compile because the compiler can’t find PersistenceBrokerFactory and QueryFactory class. I have tested the torque-3.0.jar file but it does not contain these two classes. Which jar file

Re: mapping class to multiple tables?

2003-02-17 Thread Armin Waibel
Hi Jesse, - Original Message - From: "Jesse Vitrone" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, February 16, 2003 3:34 PM Subject: mapping class to multiple tables? > Sorry, I'm sure this is the docs somewhere, but I just can't seem to > find it. > > The features list show

Re: newbie setup problems

2003-02-17 Thread Armin Waibel
Hi Jesse, first there is bug in there createPersistenceBroker method in handling PBKey without given user/password. I have posted a patch on the list. see http://archives.apache.org/eyebrowse/ReadMsg?[EMAIL PROTECTED] pache.org&msgNo=5507 second, to obtain a broker instance from the PBF you have

qualified M:N mapping problem

2003-02-17 Thread Sylvain.Thevoz
Hello, I have had to modify my M:N mapping to have a qualified association. Before that I used a non-decomposed m:n mapping without association class. The mapping was configured transparently and it was easy to retrieve info from that. Now, for the qualified M:N mapping, I have to create an ass

bigdecimal pk/backptr/pk assignment/sql dump/multibyte charsets

2003-02-17 Thread Jemmee Yung
Hi all, i spent the whole weekend trying to adapt my project using OJB, here comes a list of questions i really can't figure out answers in the mailing list archive. i tested with these (w2k, jdk1.4.1, sun one studio, mysql, mm 2.0.14 jdbc driver) public class User extends BusinessObject { priv