RE: Upgrade form 0.9.5 to 1.0rc4 : foreign key problem

2003-12-04 Thread Frank Renaers
The name of the method is : broker.retrieveAllReferences() Frank -Original Message- From: Graham Lounder [mailto:[EMAIL PROTECTED] Sent: woensdag 3 december 2003 15:13 To: 'OJB Users List' Subject: RE: Upgrade form 0.9.5 to 1.0rc4 : foreign key problem Hey Wally, So if I call

error when start OJB

2003-12-04 Thread Sylvain.Thevoz
Hello, I have this error when I launch OJB: [BOOT] INFO: OJB.properties: file:/C:/Eclipse_projects/woc_cocoon_2.1.2/WEB-INF/classes/OJB.properties java.lang.NoClassDefFoundError: org/apache/commons/pool/PoolableObjectFactory at java.lang.Class.forName0(Native Method) at

Re: error when start OJB

2003-12-04 Thread Martin Kalén
[EMAIL PROTECTED] wrote: java.lang.NoClassDefFoundError: org/apache/commons/pool/PoolableObjectFactory What does it mean? It means that an external package that OJB depends on (Jakarta Commons Pool in this case) is not present in your classpath. Check out

Upgrade form 0.9.5 to 1.0rc4 : wildcard problems

2003-12-04 Thread Frank Renaers
Hi, In version 0.9.5 it was possible to use wildcards in where-criteria. Example : criteria.addEqualTo(productGroup.groupName,pro*gro?p 1); This seems not to work anymore in 1.0rc4 ? Is it a bug ? Thanks, Frank

RE : error when start OJB

2003-12-04 Thread Sylvain.Thevoz
Hello, All the JAR I need are in the classpath. When I run OJB from a servlet it works well but when I run it from a main() method this error occurs. There is no differences between them. That's a bit strange! Sylvain -Original Message- From: Martin Kalén [mailto:[EMAIL PROTECTED]

Re: RE : error when start OJB

2003-12-04 Thread Danilo Tommasina
Hi, it must be some classpath problem... note that all jars deployed in WEB-INF/lib are automagically added to the classpath by the web server, however if you use OJB in a standalone application, you have to add each jar file to the CLASSPATH and not only the directory where they are located.

Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Peter Wieland
Hi, I try to map two classes Address and PersonAddress (a subclass of Address) using the joined table per sublcass strategy. This is my mapping: class-descriptor class=de.armax.sandbox.entity.Address table=Address field-descriptor autoincrement=true primarykey=true column=adrOID

Re:Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread balza
Hello Peter, I've worked with inheritance and all works well (with some help of the mailing list). You shoud look at my past post or you should post your complete java code. Hi, I try to map two classes Address and PersonAddress (a subclass of Address) using the joined table per sublcass

RE : RE : error when start OJB

2003-12-04 Thread Sylvain.Thevoz
All the JARs needed are in the CLASSPATH, I can check that when I run the standalone application in Eclipse. Just one question: is OJB 0.9.5 OK with JDK 1.4 (because I have just changed it)?? Sylvain -Original Message- From: Danilo Tommasina [mailto:[EMAIL PROTECTED] Sent:

RE: Upgrade form 0.9.5 to 1.0rc4 : wildcard problems

2003-12-04 Thread oliver . matz
Hello, -Original Message- In version 0.9.5 it was possible to use wildcards in where-criteria. Example : criteria.addEqualTo(productGroup.groupName,pro*gro?p 1); This seems not to work anymore in 1.0rc4 ? Have you tried criteria.addLike()? Is it a bug ? I do not think so.

INSERT with empty fields OJB / MySQL

2003-12-04 Thread Volker . Konrad
Hello, I'm running ojb v. 1.0.rc4-src. I have a domain object containing some java.sql.Timestamp attributes that might be empty. When I insert them into the datbase via ojb, the empty date-attribues are filled with the current date. I have logged the insert statement with p6spy it looks like

RE: Upgrade form 0.9.5 to 1.0rc4 : foreign key problem

2003-12-04 Thread oliver . matz
Hello, I do not know about your model, but I suppose Aricle has a reference field productGroup of type ProduktGroup and an Integer (or String) field of type productGroupId, which is mapped to a foreign key column. Let me ask a question: Why is there a setter for the latter field? Why is that

WHY OJB SPEND MORE AND MORE TIME TO STORE OBJECTS ?

2003-12-04 Thread ghielard
Hi everybody, i have an important problem of performance. I'd tried every type of object cache (default,empty,perBroker), i instanciated a new PersistenceBroker instance each time i had a storing sequence in my java Code, or I kept the same for all storing sequence. I did it the same thing with

RE: Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Plummer, Greg
Hi Peter, You might want to try declaring PersonAddress as an extend in the class-descriptor for Address (see the Advanced OR Mapping Tutorial on the website). I haven't tried this myself, but I was reading that section of the tutorial last night and I think an extent might solve your problem.

Re:Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Peter Wieland
Hi, once again me, I tried to understand your past posts, but I'm afraid I didn't. I found a thread Inheritance delete but I think I am missing some posts and hence I do not understand the answers. I'll repost my problem trying to be a little more explicit this time. The tables: CREATE

Re: WHY OJB SPEND MORE AND MORE TIME TO STORE OBJECTS ?

2003-12-04 Thread Daniel Perry
Can you post the related repository.xml and java code? It's impossible to say without looking at the code. Daniel. - Original Message - From: ghielard [EMAIL PROTECTED] To: OJB User [EMAIL PROTECTED] Sent: Thursday, December 04, 2003 2:23 PM Subject: WHY OJB SPEND MORE AND MORE TIME TO

Antwort: WHY OJB SPEND MORE AND MORE TIME TO STORE OBJECTS ?

2003-12-04 Thread RBaron-Riege
Hi, is it possible that you have an index on that table??? If you build a complex index every time you insert a set of data your index takes more time. cheers, Ralf ghielard [EMAIL PROTECTED] schrieb am 04.12.2003 15:23:45: Hi everybody, i have an important problem of performance. I'd

RE: Antwort: WHY OJB SPEND MORE AND MORE TIME TO STORE OBJECTS ?

2003-12-04 Thread ghielard
There is no index in my database, only primary and foreign keys. The phenomena still the same with an Oracle 8i database or a SQLServer 2000 database. I removed every attributes in my repository_user.xml using datatype CLOB (ora) or TEXT (SQLServer2000). I removed also every conversions in this

Re: Antwort: WHY OJB SPEND MORE AND MORE TIME TO STORE OBJECTS ?

2003-12-04 Thread Daniel Perry
If you leave data in your database, and run the test again, does it start quickly or slowly? This should tell if the problem is to do with size of database, or to do with the code. any unproxied references in repository.xml? are you closing transactions properly? Daniel. - Original Message

RE: Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Gelhar, Wallace Joseph
Well Peter, You've exhausted my knowledge. I would guess it is a bug / incompatibility with using the extent class along with the super reference mapping strategy. Any ideas / comments from the contributors? Wally -Original Message- From: Peter Wieland [mailto:[EMAIL PROTECTED] Sent:

RE: Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Peter Wieland
Well, that's what I tried resulting in a StackOverflow error. I guess it has to do with the auto-update, auto-delete and auto-retrieve attributes of the super reference-descriptor in the subclass. Could anyone tell what settings for those attribute are needed/possible for a correct mapping of

JDO inheritence

2003-12-04 Thread Stephan Wannenwetsch
Hallo, I'm trying to store an object which inherits some attributes from a superclass, but values are only be inserted in the subclass table an nothing is inserted in the superclass table. Objectmodel: Class BusinessPartner() Integer bpid; String attribute Class Individual extends

RE: Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Gelhar, Wallace Joseph
Hi Peter, Try refresh=false on the super reference. Wally -Original Message- From: Peter Wieland [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 8:50 AM To: [EMAIL PROTECTED] Subject: RE: Problem mapping inheritance hierarchy using joined tables for subclasses Well,

WHY OJB SPEND MORE AND MORE TIME TO STORE OBJECTS ?

2003-12-04 Thread ghielard
Hi everybody, i have an important problem of performance. I'd tried every type of object cache (default,empty,perBroker), i instanciated a new PersistenceBroker instance each time i had a storing sequence in my java Code, or I kept the same for all storing sequence. I did it the same thing with

RE: Antwort: WHY OJB SPEND MORE AND MORE TIME TO STORE OBJECTS ?

2003-12-04 Thread ghielard
I used different -X parameter. That ensure that storing sequences will be done but the speed decrease still the same. -Message d'origine- De : Göschl,Siegfried [mailto:[EMAIL PROTECTED] Envoyé : jeudi 4 décembre 2003 16:27 À : OJB Users List Objet : AW: Antwort: WHY OJB SPEND MORE AND MORE

RE: DefaultLogger/Log4J

2003-12-04 Thread ghielard
I think if you put this line in your log4j.properties: log4j.logger.org.apache.ojb.broker.cache.ObjectCacheFactory=WARN CACHE STATISTICS logs won't be written any more. -Message d'origine- De : Dave Hodson [mailto:[EMAIL PROTECTED] Envoye : jeudi 4 decembre 2003 03:07 A : [EMAIL

RE: Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Peter Wieland
Try refresh=false on the super reference. Does not work either. I tried refresh=false auto-retrieve=false auto-delete=false auto-update=false on the super reference. But I stell get the StackOverflowError when querying:

RE: Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Gelhar, Wallace Joseph
Hi Peter, You will need to add PersonAddress as an Extent of Address if you want PersonAddress to be in the seach domain of a query for class Address. Wally -Original Message- From: Peter Wieland [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 4:22 AM To: [EMAIL PROTECTED]

RE: Antwort: WHY OJB SPEND MORE AND MORE TIME TO STORE OBJECTS ?

2003-12-04 Thread ghielard
it starts normally with a good speed and it is slowing down even if the database is empty or not. The time is always the same, about 40 min for the first sequence, 50 min for the second one etc ... the increasing is between 5 or 20 secondes for each storing sequence. A storing sequence stores

hot to reload cached object?

2003-12-04 Thread Jair da Silva Ferreira Júnior
Hello, Does anyone know how to refresh or reload an OJB cached object from the database? Is there any API or method that can help me do this? The situation is: I have an object in OJB cache, the object has been changed in the database. How can I say to OJB to reload my object? Thanks,

Re: hot to reload cached object?

2003-12-04 Thread Martin Kalén
Jair da Silva Ferreira Júnior wrote: Does anyone know how to refresh or reload an OJB cached object from the database? If you are using the PersistenceBroker API, the method to use is: broker.removeFromCache(object); See

Re: JDO Bug (status please)

2003-12-04 Thread Gus Heck
Well, since I am relatively stuck I peeked under the hood and took a stab at fixing this, based on the assumption that the analysis in the previous news group discussion of a missing state manger is the problem. After some thinking and lots of tracking back and forth through OJB persistence

Oracle and Char[size]

2003-12-04 Thread Emmanuel Dupont
All, I am working with Ojb RC4, Oracle 9i. I have a table with a PK with char[5] size. When I update with the value FR OJB tries to insert FR . And so it does an insert instead of an update when I still have a FR value in my PK. I didn't have this trouble with SQLServer..I quiet

Re: Oracle and Char[size]

2003-12-04 Thread Martin Kalén
Emmanuel Dupont wrote: I have a table with a PK with char[5] size. When I update with the value FR OJB tries to insert FR . And so it does an insert instead of an update when I still have a FR value in my PK. You could: A) comply with char[5] and use the String FRwith OJB. B) define the

RE : Oracle and Char[size]

2003-12-04 Thread Emmanuel Dupont
Thanks a lot Martin !! -Message d'origine- De : Martin Kalén [mailto:[EMAIL PROTECTED] Envoyé : jeudi 4 décembre 2003 19:08 À : OJB Users List Objet : Re: Oracle and Char[size] Emmanuel Dupont wrote: I have a table with a PK with char[5] size. When I update with the value FR OJB

Re: hot to reload cached object?

2003-12-04 Thread Armin Waibel
Hi, Jair da Silva Ferreira Júnior wrote: Hello, Does anyone know how to refresh or reload an OJB cached object from the database? Is there any API or method that can help me do this? The situation is: I have an object in OJB cache, the object has been changed in the database. How can

j2ee.jar not loaded

2003-12-04 Thread Jewett, Diane C
I added the j2ee.jar and other ojb jars in the WEB-INF/lib dir and got: INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', retur nNull=true WebappClassLoader: validateJarFile(C:\jakarta-tomcat-4.1.27\webapps\storefront\W EB-INF\lib\j2ee.jar) - jar not loaded. See Servlet

Re: Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Jakob Braeuchi
hi peter, you could try to define an extent in classdescriptor of Address pointing to PersonAddress. BUT the problem is that extents and super-references do not go together well. you may end up with instances of the wrong class. the support for mapping one class to multiple tables needs

Re: j2ee.jar not loaded

2003-12-04 Thread Philippe Hacquin
Hi, you don't need a j2ee.jar in the lib directory of your web app. The necessary classes for a web or full j2ee app are already present in the container's classpath and jars. Jewett, Diane C wrote: I added the j2ee.jar and other ojb jars in the WEB-INF/lib dir and got: INFO: Initializing,

Re: Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Peter Wieland
hi peter, you could try to define an extent in classdescriptor of Address pointing to PersonAddress. BUT the problem is that extents and super-references do not go together well. you may end up with instances of the wrong class. the support for mapping one class to multiple tables needs

Re: hot to reload cached object?

2003-12-04 Thread Jair da Silva Ferreira Júnior
Hi Martin, Thank you for your fast reply. Removing an object from cache using broker.removeFromCache(o) and making a new load of the object creates a new JVM object that points to the same database object, right? If this is true, my problem remains because other objects would still