RE: how to send a real SQL query to OJB

2003-03-20 Thread Mahler Thomas
yes, seems to be an inconsistency in the FAQ... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 9:53 AM To: [EMAIL PROTECTED] Subject: RE: how to send a real SQL query to OJB Hi again, Sorry if I don't understand something

Re: how to send a real SQL query to OJB

2003-03-20 Thread Armin Waibel
Is there a big difference between 0.9.5 and 1.0? Yes and no ;-) Big difference between 0.9.5 ans 1.0 in repository.dtd and OJB.properties . In the PB-api we add new methods and rename some methods. Best is you compare the repository_junit.xml of both versions to get a clue (field id's were

Instalation problems. dump-testdb.

2003-03-20 Thread Mauricio CASTRO
Hi. After executing bin\build.bat dump-testdb I get the following error: BUILD FAILED java.lang.NoClassDefFoundError: com/workingdogs/village/DataSet I need to download the village jar? What else do I need to download? Thank you in advance. Mauricio. The question of whether computers can

Re: Instalation problems. dump-testdb.

2003-03-20 Thread Alexandre Touret
You must add to your classpath the librairies included with torque (http://db.apache.org/torque) Alexandre Touret Mauricio CASTRO wrote: Hi. After executing bin\build.bat dump-testdb I get the following error: BUILD FAILED java.lang.NoClassDefFoundError: com/workingdogs/village/DataSet I need

RE : What happens when an insert with ODMG fails?

2003-03-20 Thread Emmanuel Dupont
I have the same problem. Any help ? -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : jeudi 20 mars 2003 08:50 À : [EMAIL PROTECTED] Objet : What happens when an insert with ODMG fails? Hi, following question about storing a new object: I have an Object

RE: What happens when an insert with ODMG fails?

2003-03-20 Thread Mark Rijnbeek
From what I've seen, the insert is replaced with an update. Can't say I was expecting that.. You could check if that happens in your case as well. regards, Mark. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 20 March 2003 07:50 To: [EMAIL PROTECTED]

Re: What happens when an insert with ODMG fails?

2003-03-20 Thread Will Jaynes
Matthias, If an object has an ID that is set (not null or zero) then ODMG considers it to be an existing, persisted object that is already in the database. So locking it for write will result in an update, not an insert. In general, you shouldn't be setting the id. If you want an existing

Re: Persistence brokers and threads..(again)

2003-03-20 Thread Armin Waibel
Hi Mark, sorry for the late reply. Hi I asked this question a couple of days ago. Up to now I have been managing my own persistence broker/thread mapping; I noticed that there is a persitence broker thread mapping class in the distribution for RC1. From looking at the code I cant see how

RE: Is there a way to store a Criteria object in database

2003-03-20 Thread Janssen, Roger
Hi, what we did is implementing a wrapper around ojb, implementing our own query/criteria objects. we develop webapps and webapps submit webforms, so for instance the search criteria submitted from a searchscreen can be translated to a uri. we implemented an object (queryspec) that is able to

Re: Query on composite pattern

2003-03-20 Thread Jakob Braeuchi
hi dariusz, you got me wrong. i'd like to combine both a.) and b.) the cast operator looks promising but imo the current way to extract functions could interfere with it. jakob Dariusz Kies wrote: Hi Jakob, b. IMHO this solution is not good because you don't know which a extent class to

RE: Is there a way to store a Criteria object in database

2003-03-20 Thread Mahler Thomas
The most easy solution is to use a Object2ByteArray FieldConversion, this will allow to store the criteria objects in VARCHAR columns. There is a sample for this Conversion in the TestSuite. HTH, Thomas -Original Message- From: Janssen, Roger [mailto:[EMAIL PROTECTED] Sent: Thursday,

RE: Persistence brokers and threads..(again)

2003-03-20 Thread Ryan Vanderwerf
Armin, what version was this introduced in? I'm getting occasional db deadlocks in 0.9.9. Ryan -Original Message- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 6:28 AM To: OJB Users List; [EMAIL PROTECTED] Subject: Re: Persistence brokers and

Error install p6spy1.0.2 in tomcat 4.1.18 and 0.9.9

2003-03-20 Thread Ferran Parra
Hi all I try to install p6spy in my development machine (tomcat 4.1.18, ojb 0.9.9, p6spy 1.0.2) like this: 1) put p6spy.jar in WEB-INF\lib 2) configure repository_database.xml jdbc-connection-descriptor ... driver=com.p6spy.engine.spy.P6SpyDriver instead of driver=com.mysql.jdbc.Driver ... 2) put

Problem with mailing list archive?

2003-03-20 Thread Chiah Tong Kiat
Hi Is the mailing list archive having problem. I've been tring to access that mailing list archive for the past 2 days without any success. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Error install p6spy1.0.2 in tomcat 4.1.18 and 0.9.9

2003-03-20 Thread Ferran Parra
thanks now its ok and the step 4) is not necessary! - Original Message - From: Ferran Parra [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Thursday, March 20, 2003 6:34 PM Subject: Error install p6spy1.0.2 in tomcat 4.1.18 and 0.9.9 Hi all I try to install p6spy in my

Re: Error install p6spy1.0.2 in tomcat 4.1.18 and 0.9.9

2003-03-20 Thread Ferran Parra
i have stop the service of mysql!!, when start servie of mysql all it's ok and p6spy is running. thanks - Original Message - From: Ferran Parra [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Thursday, March 20, 2003 7:42 PM Subject: Re: Error install p6spy1.0.2 in tomcat

Re: Detecting Constraint violations/Batch mode

2003-03-20 Thread Christopher C Worley
Yuji Shinozaki, You can edit OJB.properties and set the debug level the sql related entris equal to DEBUG. This will log the sql command generated and the sql error. Sorry, i can not answer your second question. -chris worley Using OJB 0.9.9 against Postgres 7.3.1, When I commit a odmg

Re: Detecting Constraint violations/Batch mode

2003-03-20 Thread Armin Waibel
Hi Yuji, the ODMG-api use batch mode by default. I checked in a workaround for this problem (till problems are fixed). Get the last version of ConnectionManagerImpl from CVS (should work with 0.9.9 too) http://cvs.apache.org/viewcvs.cgi/db-ojb/src/java/org/apache/ojb/broker/

How to use Criteria.addEqualByColumn

2003-03-20 Thread Michael Duffy
I have an m:n relationship between two tables/classes A and B, modeled with an A_TO_B intermediate table in-between. I'd like to get all the instances of B associated with a given A as a Collection. The SQL might look like: SELECT * FROM B WHERE B.B_ID = A_TO_B.B_ID AND A_TO_B.A_ID = X;

m:n Chaining

2003-03-20 Thread Michael Duffy
I've worked through the Person/Project m:n example and gotten everything working. The real problem that I'm trying to model is a four-level tree: four tables (A, B, C, D) with m:n relationships between each. I've been unsuccessful at getting all the relationships working. I've managed to get

Re: Problem with mailing list archive?

2003-03-20 Thread Thomas Mahler
If you had access to the archive you would see that this a known issue. :-) It'being fixed. But I don't know when. Chiah Tong Kiat wrote: Hi Is the mailing list archive having problem. I've been tring to access that mailing list archive for the past 2 days without any success.

deploying ojb with WebLogic

2003-03-20 Thread Chiah Tong Kiat
Hi I was trying to search the mail archive for information on deploying OJB in weblogic. Is there any current issue in preventing OJB from being used in weblogic? Is thee any particualr configuration in the weblogic setup that I need to be aware of? thanks tk

OJB + Custom connection

2003-03-20 Thread Edson Carlos Ericksson Richter
Hi! Isto possible to open external connection and then configure OJB to use it (not the one in repository.xml - in real, is better if I don't need to configure connection in repository.xml, besides I think this is not possible). I wan't to use a user authenticated database connection, not one

Introspection error in PersistentFieldPropertyImpl ?

2003-03-20 Thread Mario Toffia
Hi, I've got two methods (setter and getter) for a property in my bean that is called 'EquipmentId' (setEquipmentId, getEquipmentId) i.e. PersistentFieldPropertyImpl is used for Introspection. Using the repository.xml to map it like: field-descriptor id=3 name=EquipmentId column=EQNUM

PersistenceBrokerServlet in 1.0rc1

2003-03-20 Thread Jurgen . Richtsfeld
hi! has anyone tried to start PersistenceBrokerServlet in OJB version 1.0rc1? do you have problems? mine run quite well in 0.9.7, but now i get an error you can see in my posting from 19th. jürgen - To unsubscribe, e-mail:

RE: Introspection error in PersistentFieldPropertyImpl ?

2003-03-20 Thread Charles Anthony
The Introspector and PropertyDescriptor are part of the JDK, not classes specific to OJB. I haven't got the JavaBean spec to hand, so I cannot categorically confirm that it is part of the JavaBean spec; however it is definitely a convention (widely adhered to) that the member variable of a

Re: OJB + Custom connection

2003-03-20 Thread Armin Waibel
Hi Edson, hope I don't misunderstand you, I wan't to use a user authenticated database connection, not one open with general credentials... Do this mean you want pass user/password at runtime? No problem, see FAQ Many different database user - How do they login? OR Isto possible to open