RE: Newbie question on field access error

2004-10-18 Thread oliver . matz
Hello Andy, -Original Message- From: Whitaker, Andy [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 9:48 PM To: [EMAIL PROTECTED] Subject: Newbie question on field access error Hello, I'm new to OJB and I'm maintaining an app that uses OJB 1.0.0 and I'm receiving

RE: Inheritance

2004-10-18 Thread oliver . matz
? If your articles are mapped to the same table, that table should probably have a column ojbConcreteClass. Look into repository_junit for exmples. Olli -- Oliver Matz ppi Media GmbH Deliusstraße 10 D-24114 Kiel phone +49 (0) 43 1-53 53-422 fax +49 (0) 43 1-53 53-2 22 email mailto

RE: Optimistic Locking exception with 1.0 - doesn't happen with r c4

2004-09-15 Thread oliver . matz
Hello, -Original Message- From: Kollivakkam R. Raghavan [mailto:[EMAIL PROTECTED] I am getting the following exception with an optimistic locking which does not happen with rc4. Did something change? We are about to use OJB in production and I wanted to switch to the release

non-equal Identities for primary-key fields with FieldConversion

2004-09-03 Thread oliver . matz
Hello, I am currently porting our application from OJB 1.0.0rc4 to OJB 1.0.0 A new problem has been introduced since then in MtoNCollectionPrefetcher.associateBatched, as Jakob points out in this source's javadoc: BRJ: There is a potential problem with the type of the pks used to build the

RE: non-equal Identities for primary-key fields with FieldConvers ion

2004-09-03 Thread oliver . matz
Hello Ludovic, (I guess there are some accents missing on your name - sorry for that), thank you for your quick answer. -Original Message- From: Ludovic Maitre (POP - Factory Part) I have found a way to workaround the problem without modifying the code. However, that workaround does

RE: PB and OQL ?

2004-01-09 Thread oliver . matz
Hello, -Original Message- From: Thomas Mahler [mailto:[EMAIL PROTECTED] yes, that's possible! You can execute an OQL query without using ODMG transactions at all! (internally we are using an implicit transaction to make this possible). Simply perform the query and work with the

RE: `Single Proxy for a Whole Collection` problem

2004-01-08 Thread oliver . matz
: org.apache.ojb.broker.accesslayer.ListProxy This is a good error message, isn't it? The proxy is of type ListProxy, which implements the List interface but is not assignable to a field of type Vector. HTH, Olli -- Oliver Matz ppi Media GmbH Deliusstraße 10 D-24114 Kiel phone +49

RE: `Single Proxy for a Whole Collection` problem

2004-01-08 Thread oliver . matz
-- Oliver Matz ppi Media GmbH Deliusstraße 10 D-24114 Kiel phone +49 (0) 43 1-53 53-422 fax +49 (0) 43 1-53 53-2 22 email mailto:[EMAIL PROTECTED] web www.ppi.de Explore your printnet! DRUPA 2004 Düsseldorf, Germany, 6 - 19 May 2004, Booth 6E62

RE: com.sybase.jdbc2.jdbc.SybSQLException: Incorrect syntax near the keyword 'temporary'.

2003-12-18 Thread oliver . matz
Hello, -Original Message- com.sybase.jdbc2.jdbc.SybSQLException: Incorrect syntax near the keyword 'temporary'. at com.sybase.jdbc2.tds.Tds.processEed(Tds.java:2429) do you use temporary as a column / field name? That might cause the problem. In order to find out,

RE: com.sybase.jdbc2.jdbc.SybSQLException: Incorrect syntax near the keyword 'temporary'.

2003-12-17 Thread oliver . matz
Hello Andrew, I use OJB with Sybase ASE 11.5. -Original Message- com.sybase.jdbc2.jdbc.SybSQLException: Incorrect syntax near the keyword 'temporary'. at com.sybase.jdbc2.tds.Tds.processEed(Tds.java:2429) do you use temporary as a column / field name? That might cause the

RE: Simple (I Hope) Howto Question

2003-12-16 Thread oliver . matz
-- Oliver Matz ppi Media GmbH Deliusstraße 10 D-24114 Kiel phone +49 (0) 43 1-53 53-422 fax +49 (0) 43 1-53 53-2 22 email mailto:[EMAIL PROTECTED] web www.ppi.de Explore your printnet! DRUPA 2004 Düsseldorf, Germany, 6 - 19 May 2004, Booth 6E62

RE: 1:1 relationship

2003-12-11 Thread oliver . matz
Hallo Sephan, What I want was a bidirectional 1:1 relationship but this one is only unidirectional. I can get the BusinessPartner from the Customer but not the otherway round. Also the FK_CUST column in the DB is NULL but I'm not sure if I need such a column, because in my opinion the key

RE: Newbie needs help

2003-12-10 Thread oliver . matz
post also your pc classes source code. Olli -- Oliver Matz ppi Media GmbH Deliusstraße 10 D-24114 Kiel phone +49 (0) 43 1-53 53-422 fax +49 (0) 43 1-53 53-2 22 email mailto:[EMAIL PROTECTED] web www.ppi.de Explore your printnet! DRUPA 2004 Düsseldorf, Germany, 6 - 19

RE: 1:1 relationship

2003-12-08 Thread oliver . matz
Hej Stephan -Original Message- reference-descriptor [...] foreignkey field-ref=fk_cust here, field-ref should not be xml-content but an attribute in the opening tag. /foreignkey /reference-descriptor HTH, Olli

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.

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

RE: too slow!

2003-12-02 Thread oliver . matz
Hello, -Original Message- From: Glauber Andrade [mailto:[EMAIL PROTECTED] reference-descriptor name=prestador class-ref=com..data.Prestador foreignkey field-ref=id_prestador/ /reference-descriptor Is the package name correct in your

RE: too slow!

2003-12-01 Thread oliver . matz
Hello Andrade, -Original Message- From: Glauber Andrade [mailto:[EMAIL PROTECTED] I am using OJB and Mysql (4.0.16) (with mysql-connector-java-3.0.9-stable) in an swing application and the system is too slow. A simple query whith 2000 registers takes more than 15s to go. How

RemovalAwareCollection, was: RE: does PersistenceBroker.getCollec tionByQuery use the cache?

2003-12-01 Thread oliver . matz
Hello Gong, please start a new thread when you ask a new question. -Original Message- class myList and myEntry has a 1:n relationship each myList has a collection of myEntry(s) [..] collection-descriptor name=entries collection-class=

RE: RemovalAwareCollection, was: RE: does PersistenceBroker.getCo llec tionByQuery use the cache?

2003-12-01 Thread oliver . matz
Hello, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Just remove the attribute collection-class from the class-descriptor and try again. ^ oops, I meant the collection-descriptor. Olli

RE: Deletion Bug!!!!!?

2003-11-28 Thread oliver . matz
Hello, -Original Message- thanks - I think that was the solution. But I don't think that it was intended by the developers of OJB that OJB deletes instances by default, or was it? no it was not, so OJB did not do it. Then a lot of users complained, so we changed it. That was

RE: Bug in OJB (ODMG) with collections ?

2003-11-26 Thread oliver . matz
Hello, -Original Message- I've got an object which contains a collection. When I change the object collection OJB wants to delete the related object in the database. this is one of the most frequently asked questions. See any of the threads that contain 'RemovalAwareCollection'.

PB API: delete then update same object - OptimisticLockException

2003-11-26 Thread oliver . matz
(or additionally), one could introduce a method PersistenceBroker.isDeleted(Object obj) and implement that method using markedForDelete.contains(obj) Olli -- Oliver Matz ppi Media GmbH Deliusstraße 10 D-24114 Kiel phone +49 (0) 43 1-53 53-422 fax +49 (0) 43 1-53 53-2 22 email

RE: ClassCastException

2003-11-26 Thread oliver . matz
Hello, -Original Message- this is the exception stack trace : java.lang.ClassCastException: edu.broglie.ws.dto.AppFlulog at edu.broglie.ws.dto.AppAppcli.equals(AppAppcli.java:65) your implementation of equals() does not fulfil the contract specified in the javadoc of that

RE: Collection of string

2003-11-24 Thread oliver . matz
Hello Thomas, -Original Message- From: Mahler Thomas [mailto:[EMAIL PROTECTED] 1. Define your DB coulm as VARCHAR. 2. in the repository_user.xml you set conversion=org.apache.ojb.broker.accesslayer. conversions.StringVector2Varch arFieldConversion 3. That's all! All strings of

RE: Contributing code and fixes

2003-11-21 Thread oliver . matz
Hello Robert, -Original Message- From: Robert S. Sfeir [mailto:[EMAIL PROTECTED] The problem is that checkForPrimaryKeys() throws ClassNotPersistenceCapableException, but it's not handled in the code above either by throw or by catch. Am I missing some kind of setup? The imports

RE: Contributing code and fixes

2003-11-21 Thread oliver . matz
Hello Robert, -Original Message- From: Robert S. Sfeir [mailto:[EMAIL PROTECTED] I was wondering what the process is to contribute fixes. We appreciate any reasonable contribution. The official guideline is http://db.apache.org/roles.html. If you bundle changes and post them on the

RE: dynamic proxy problem

2003-11-19 Thread oliver . matz
Hello, -Original Message- From: Ken Brewer [mailto:[EMAIL PROTECTED] class-descriptor class=com.microremedies.pm.persist.AccountImpl table=ACCOUNT proxy=dynamic field-descriptor name=uid column=uid jdbc-type=BIGINT primarykey=true autoincrement=true/

RE: dynamic proxy problem

2003-11-19 Thread oliver . matz
Hello Ken, -Original Message- I was able to make it work by pointing the collection-descriptor and reference-descriptor to AccountImpl instead of Account like below. fine. [..] Of course I have to cast to Account though. I do not understand that. Where do you do that cast? It

RE: optional 1:1 relationship and null proxies

2003-11-18 Thread oliver . matz
Hej Andrew, -Original Message- From: Andrew Geery [mailto:[EMAIL PROTECTED] If the reference exists, everything works perfectly: I can dereference like this person.getLegalName().getFirstName() [..] My questions are: 1) Should this method be changed to return a default value

RE: Statement field is null

2003-11-18 Thread oliver . matz
Hello Peter, -Original Message- From: Peter Klassen [mailto:[EMAIL PROTECTED] Hi, i'm in trouble with a painful occurence ;0) try to create a rowset with the OJBPersistenceBroker. There is char-field named 'languageID', which is a foreign-key. OJB returns with the following

RE: Error at run time by a beginner, next step

2003-11-11 Thread oliver . matz
Hello Andre, -Original Message- From: A Leg [mailto:[EMAIL PROTECTED] org.apache.ojb.odmg.locking.InMemoryLockMapImpl is illegal for key LockMapClass (should be a class, using It seems that OJB does not find that class. Maybe you are using an old or corrupted version of OJB?

RE: dynamic proxies (simple question)

2003-11-10 Thread oliver . matz
Hello Daniel, -Original Message- From: Daniel Perry [mailto:[EMAIL PROTECTED] So my solution would seem to be proxies. The tutorial on dynamic proxies isn't too clear. It says: To use dynamic proxies the persistent class in question (in our case the Article class) must

RE: dynamic proxies (simple question)

2003-11-10 Thread oliver . matz
Hello Daniel, -Original Message- A quick question regarding inherritance (assuming I[beanname] are interfaces to bean properties): Job extends BaseBO. BaseBO implements IBaseBO. IJob only interfaces the extra methods in Job over BaseBO. OJB doesnt know about the inherritance

RE: dynamic proxies (simple question)

2003-11-10 Thread oliver . matz
Hello, -Original Message- From: Daniel Perry [mailto:[EMAIL PROTECTED] One more question: In the class employee i have private Job job; If i proxy this Job reference, should it become: private IJob job; // where IJob is an interface to Job class. yes. So, if i understand

RE: Error at run time by a beginner

2003-11-10 Thread oliver . matz
Hello, -Original Message- From: A Leg [mailto:[EMAIL PROTECTED] [..] [BOOT] ERROR: Cannot get OJB properties file, use default settings! you should start by fixing that one. Make sure that the directory that contains your file OJB.properties (to be found in

RE: Smart Count

2003-11-07 Thread oliver . matz
Hello Daniel, -Original Message- From: Daniel R. Ambrosio [mailto:[EMAIL PROTECTED] What would be the smarter way to do a count on an entity based on a criteria? I believe that getting the Collection (using getCollectionByQuery()) and then size() is not the best way to that

RE: Opitimistic Lock with the PB API

2003-11-06 Thread oliver . matz
Hello Arbona, -Original Message- From: Arbona Vincent [mailto:[EMAIL PROTECTED] I want to know how to use optimistic lock with the PB API. I know that I have to put a Lock Field as integer or timestamp, but how OJB manage it? When a record is considered as locked and when

RE: Loading an object

2003-11-05 Thread oliver . matz
Hello Florin, thank you very much for your investigations. Your information may be very helpful to improve OJB, and we probabably would not have made such detailed comparison ourselves. -Original Message- From: Florin Pop [mailto:[EMAIL PROTECTED] [..] 1. If I set the attribute

RE: Simple performance improvement Re: m:n relations mapping...

2003-11-04 Thread oliver . matz
Hello Andy, I will have a look at it when I have time. Please post messages like this to the OJB users' or developers' list. Thank you, Olli -Original Message- From: Andy Malakov [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2003 9:57 PM To: [EMAIL PROTECTED] Subject:

RE: Loading an object

2003-11-04 Thread oliver . matz
Hello, -Original Message- From: Florin Pop [mailto:[EMAIL PROTECTED] I tried: Criteria crit = new Criteria(); crit.addEqualTo(id, new Long(PERSON_ID)); Query query = new QueryByCriteria(Person.class, crit); Person person = (Person)

RE: Loading an object

2003-11-04 Thread oliver . matz
Hello Florin, -Original Message- From: Florin Pop [mailto:[EMAIL PROTECTED] I have tried your suggested approach but curiously the same result. [..] I would expect OJB to generate roughly the same SQL statement. Provided that the execution of the SQL dominates (which is

RE: Simple performance improvement Re: m:n relations mapping...

2003-10-31 Thread oliver . matz
Hello, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] I am uncertain whether we should fix it because it does mean a (very minor) change of behaviour. I tend to 'yes'. I have just committed a fix. Olli

RE: Simple performance improvement Re: m:n relations mapping...

2003-10-30 Thread oliver . matz
Hello, -Original Message- From: Andy Malakov [mailto:[EMAIL PROTECTED] Problem: Right after insert, PersistenceBrokerImpl calls storeCollections () method that performs redundant DELETE FROM... operation. The problem has been mentioned by myself in the developer list together wit

RE: Incorrect field reference

2003-10-28 Thread oliver . matz
Hello, -Original Message- From: Reitsam Andreas [mailto:[EMAIL PROTECTED] 2003-10-28 11:10:45,307 ERROR [STDERR] org.apache.ojb.broker.OJBRuntimeException: Incorrect field reference salesPersonId in [EMAIL PROTECTED] delete=false,cascade retrieve=true,cascade store=true,is

NPE in TableAlias.hashCode, was: RE: java.lang.StackOverflowErro r

2003-10-27 Thread oliver . matz
Hello, -Original Message- From: Christophe.Demarey [mailto:[EMAIL PROTECTED] I correct my repository definition (remove the table attribut from PersonBaseImpl descriptor) but I still get an exception. Any idea about it ?

RE: Logging

2003-10-22 Thread oliver . matz
Hello Goncalo, -Original Message- From: Goncalo Luiz [mailto:[EMAIL PROTECTED] I set all debug levels to FATAL but I still getting info messages. The logger I'm using is org.apache.ojb.broker.util.logging.PoorMansLoggerImpl My application is text-based and I, obviously, don't

RE: 1:m noclassdeffound error

2003-10-16 Thread oliver . matz
Hej Daniel, -Original Message- From: Daniel Perry [mailto:[EMAIL PROTECTED] I'm having trouble mapping a 1:m relationship. (files show below) I get a: java.lang.NoClassDefFoundError at org.apache.ojb.broker.PersistenceBrokerFactory.getConfigurator(Unknown Source) at

RE: How to map optional 1:1 relationship

2003-10-15 Thread oliver . matz
Hello, -Original Message- From: Boyes, Carl [mailto:[EMAIL PROTECTED] I've currently mapped it as a 1:1, but the when the foreign key reference is null an extra sql statement with a where condition of fkey = '' is generated. this question has been asked fairly often (for

RE: RE : How to map optional 1:1 relationship

2003-10-15 Thread oliver . matz
Hello, -Original Message- From: Emmanuel Dupont [mailto:[EMAIL PROTECTED] No '' should be done. Sample : INSERT INTO A (Apk, Bfk) VALUES ('100',''); It should be : INSERT INTO A (Apk) VALUES ('100'); This problem is addressed by another thread in this list (also started

RE: Ant

2003-10-15 Thread oliver . matz
Hello Troy, -Original Message- From: Taillefer, Troy (EXP) [mailto:[EMAIL PROTECTED] I have question about build.sh junit, I know it uses Ant and reads build.xml makefile is there anyway I could pass command line arguments -Xmx128m -Xss128m to the java command

RE: N same class mapping question...

2003-10-14 Thread oliver . matz
Hej Brian, -Original Message- From: Brian McCallister [mailto:[EMAIL PROTECTED] I have mixed and matched the value, but it hasn't mattered. I had thought it might care so I tried various combinations. It in this vase being a nebulous entity who thwarts my plans, as to my

RE: N same class mapping question...

2003-10-14 Thread oliver . matz
Hello Brian, -Original Message- From: Brian McCallister [mailto:[EMAIL PROTECTED] Which concrete class is instantiated for the list field? Default - I don't specify anything so should be a Vector. I bet this is the problem. You'd probably better use one of the managed

OJB maintenance branch - who volunteers?

2003-10-09 Thread oliver . matz
that there is consensus that version 1.0.0 is a canonical or even self-evident point to create such a branch. I propose to create that branch (or extra modul) asap and then develop versions 1.0.x there. I offer to help maintain that branch or module. Olli -- Oliver Matz ppi Media GmbH Deliusstraße

RE: Strange null pointer exceptions

2003-10-08 Thread oliver . matz
Hello Jan, since the NPE is due to missing fields in the metadata, I assume that a workaround is to add field-descriptors. see below. -Original Message- From: Jan Berkel [mailto:[EMAIL PROTECTED] class-descriptor class=cabane.templates.Template table=TEMPLATES Please

error messages and documentation, was: RE: Strange null pointer e xceptions

2003-10-08 Thread oliver . matz
Hej Jan, -Original Message- From: Jan Berkel [mailto:[EMAIL PROTECTED] since the NPE is due to missing fields in the metadata, I assume that a workaround is to add field-descriptors. I added field-descriptors to the class descriptor of the Interface (Template) and it worked

Criteria.addOrCriteria() not commutative? (inner vs outer join)

2003-09-30 Thread oliver . matz
Hello, I have a siutation where the two folloing snippets lead to non.equivalent queries: crit1.addOrCriteria(crit2); Query qry12 = new QueryByCriteria(BookArticle.class, crit1); vs crit2.addOrCriteria(crit1); Query qry21 = new QueryByCriteria(BookArticle.class, crit2); In our

RE: Problem with proxies

2003-09-23 Thread oliver . matz
Hello Necro, -Original Message- From: Necro [mailto:[EMAIL PROTECTED] i have some problems with proxies. I got a 1:N relationship between two classes. which OJB version do you use? Olli - To unsubscribe, e-mail:

RE: Problem with proxies

2003-09-23 Thread oliver . matz
Hello Cristof, -Original Message- i have some problems with proxies. I got a 1:N relationship between two classes. which OJB version do you use? As far as i can remember it should be cvs just before the prevayler checkins. cf. developer list thread superflous, long

RE: Using different Qualifiers in DB2

2003-09-16 Thread oliver . matz
Hello Lasse, -Original Message- class-descriptor class=User table=PRODUCTION.USER . /class-descriptor class-descriptor class=User table=PRODUCTION.ORDER I suppose you mean 'Order' here? . /class-descriptor and

RE: Prevayler based PB implementation

2003-09-15 Thread oliver . matz
Hej Thomas, -Original Message- during the weekend I wrote a new PB implementation that is based on prevayler (http://sourceforge.net/projects/prevayler/). don't you have any hobbies? :-) - A query engine must be implemented. This is the largest todo. We need a query engine,

RE: Transactions with PB-API

2003-09-11 Thread oliver . matz
Hello, -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED] the broker have tre methods to handles transactions.. beginTransaction(); broker.commitTransaction(); broker.abortTransaction(); how can I use several (concurrent) transactions using the PB-API. With

RE: Extent problem with multiple classes and tables

2003-09-08 Thread oliver . matz
Hello Chris, -Original Message- From: Christopher C Worley [mailto:[EMAIL PROTECTED] Still having problems with this. I have a question about defining extents. In the below explination would C be the only class I would have to define the extent classes for or would it be in A?

RE: non-decomposed m:n mapping deleting incorrectly

2003-09-08 Thread oliver . matz
Hello, -Original Message- From: Chris Widhelm [mailto:[EMAIL PROTECTED] It just seems odd that by removing an item from a collection that it performs a delete on the object that is in the collection. This is the behaviour of

RE: O/R mapping: determine table at runtime?

2003-09-04 Thread oliver . matz
Hello Thomas, -Original Message- From: Thomas Mahler [mailto:[EMAIL PROTECTED] Suppose you have three class A, B, C. Suppose that both A and B have a collection of C. Suppose furthermore that every C instance is in exactly one of these collections. When I map this to a

O/R mapping: determine table at runtime?

2003-09-02 Thread oliver . matz
Hello, I have a question concerning advanced O/R-mapping. Suppose you have three class A, B, C. Suppose that both A and B have a collection of C. Suppose furthermore that every C instance is in exactly one of these collections. When I map this to a relational database, I might want to have

RE: Newbie ODMG-API problem

2003-09-01 Thread oliver . matz
Hello Lasse, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] I have two entries in my db-table, the BEN_IDs are LAMBREC and AAA but with the query below I still get both, no matter what I enter as benId in the query. What am I doing wrong? Have you tried

RE: Potential Identity bug involving mulitple extents.

2003-08-25 Thread oliver . matz
Hello, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] I have just encountered a situation that I THINK is a bug in the Identity object. The equals method compares the topLevelClass, and I think it should be comparing the realClass. I think others have

RE: RES: Query Customizers

2003-08-22 Thread oliver . matz
Hello, -Original Message- From: Thomas Cornet [mailto:[EMAIL PROTECTED] Here is one I've made, quite a basic one, which just adds 'equal' criterias. this seems to be a very useful thing. Why don't we add it to the OJB code base? Olli

RE: [Re-post] PB query question

2003-08-21 Thread oliver . matz
Hello, -Original Message- From: Phil Warrick [mailto:[EMAIL PROTECTED] Here is my model: [A] 1--n [B] 1--n [C] 1--1 [D] | | C1 C2 I want to query for A objects using a C1 timestamp field as criteria (C1 is a subclass of C and

RE: repost: subqueries

2003-08-21 Thread oliver . matz
Hello Jakob, -Original Message- From: Jakob Braeuchi [mailto:[EMAIL PROTECTED] please see my post in dev-list '[vote] reference to a parent attribute in subquery' this allows you to reference attributes of the enclosing query. please be aware that this is a _temporary_

RE: prefetchedCollections for collection field in referenced classes?

2003-08-19 Thread oliver . matz
Hello Ron, -Original Message- From: Ron Gallagher [mailto:[EMAIL PROTECTED] I have a similar requirement that I'm satisfying via QueryCustomizers. The problem is that my customizer isn't being applied when the P collection is loaded. I submitted some updates to the developer

repost: subqueries

2003-08-18 Thread oliver . matz
Hello, on 04.08. I have asked a question and have not got any answer. It is important to me, so I will try to reformulate. Any help will be appreciated, for example a piece of code or an explanation how to use the method Criteria.addIn(String attributeName, Query subQuery) for something that

superflous delete-statements for n:m relations on insert

2003-08-14 Thread oliver . matz
() (independently from INSERT or UPDATE), which in turn does calls deleteMtoNImplementor(). I am using OJB 1.0.0 rc4. I you agree that it is desirable, I would like to add a configuration option to surpress this behaviour. Olli -- Dr. Oliver Matz ppi Media GmbH Deliusstraße 10 D-24114 Kiel phone

RE: Why select by insert?

2003-08-11 Thread oliver . matz
Hello Lyl, -Original Message- From: lyl [mailto:[EMAIL PROTECTED] Can anyone tell me how to disable select by insert. What do you mean? Do you mean that there is a select statement preceding any insert statement? Do you use the PersistenceBroker API? If so, you might be happy with

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: 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

nested query and polymorphism

2003-08-01 Thread oliver . matz
*/ package org.apache.ojb.broker; import junit.framework.TestCase; import org.apache.ojb.broker.query.Criteria; import org.apache.ojb.broker.query.Query; import org.apache.ojb.broker.query.QueryFactory; import java.util.Collection; /** * @author a href=mailto:[EMAIL PROTECTED]Oliver Matz

dynamically switch RepositoryDescriptor (setEnablePerThreadChanges)

2003-07-23 Thread oliver . matz
Hello, in our application there are (collection) fields for which we sometimes want to use proxies and sometimes not. It is possible that different PersistenceBrokers simulaneously access different instances of that field in different threads, one should use a proxy and the other should not.

RE: Performance Test Results

2003-07-23 Thread oliver . matz
Hello Thomas, -Original Message- From: Thomas Mahler [mailto:[EMAIL PROTECTED] You could use OJB without a repository.xml, but not without the OJB.properties! I would like to discuss that possibility in another thread. See subject: dynamically switch RepositoryDescriptor

RE: dynamically switch RepositoryDescriptor (setEnablePerThreadChanges)

2003-07-23 Thread oliver . matz
Hello Armin, thank you for your amazingly quick answer. -Original Message- From: Armin Waibel [mailto:[EMAIL PROTECTED] in our application there are (collection) fields for which we sometimes want to use proxies and sometimes not. I have noticed the

prefetchedCollections for collection field in referenced classes?

2003-07-23 Thread oliver . matz
query. It would be nice to have something like queryByCrit.addPrefetchedCollections(ps.qs) to advice the SQLGenerator to do that trick for the innner collections, too. Can something like that be implemented? Olli -- Dr. Oliver Matz ppi Media GmbH Deliusstraße 10 D-24114 Kiel

RE: your comments on my example save()-Method

2003-07-15 Thread oliver . matz
Hello, my comments below. -Original Message- From: Michael Wiessler [mailto:[EMAIL PROTECTED] I've implemented a delte() and several load()-Methods similar to this save()-Method. All methods are static. What do you thik about this implementation ? I wonder why you want to have

RE: find my SQL

2003-07-02 Thread oliver . matz
Hello, -Original Message- From: Lopez Vellon, Ignacio [mailto:[EMAIL PROTECTED] I am starting to use OJB and until now everything is fine , but there is a little problen, i can not see the SQL code generated by OJB. try p6spy. See http://db.apache.org/ojb/faq.html. HTH,

RE: Cache??

2003-06-27 Thread oliver . matz
Ave Cesar, -Original Message- From: Cesar [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 12:24 PM How could I make to incapacitate cache of ojb? Set the following property in OJB.properties: ObjectCacheClass=org.apache.ojb.broker.cache.ObjectCacheEmptyImpl If I want

RE: Cache??

2003-06-27 Thread oliver . matz
Hej Cesar, -Original Message- From: Cesar [mailto:[EMAIL PROTECTED] If I have two tables Person and Categories where the table Person I don´t want use the cache of ojb and Categories I want use the cache...so Set the following property in OJB.properties

RE: mapping

2003-06-26 Thread oliver . matz
Hello, -Original Message- From: Joerg Lensing [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 10:12 AM To: OJB Users List Subject: mapping hello, i have to map several fields which can have a limited number of values. e.g. day of week = mon,tue, wed. Because of

RE: mapping

2003-06-26 Thread oliver . matz
Hello, -Original Message- From: Joerg Lensing [mailto:[EMAIL PROTECTED] We use the type-safe enum pattern in our application, Then we implement a class DayOfWeekToIntConversion implements org.apache.ojb.broker.accesslayer.conversions.FieldConversion i thought about this

RE: Proxy again and again...

2003-06-25 Thread oliver . matz
Hello Christophe, -Original Message- From: Christophe Marcourt [mailto:[EMAIL PROTECTED] I've got all my simple collections. Not arrays, not manageable collections only Vectors. java.util.Vector is evil. [org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldDef aultImpl]

RE: Help getting started.

2003-06-24 Thread oliver . matz
Hello Peng Tuck, -Original Message- From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED] Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/ Main please do echo %CP% on the command line after you have run bin\build.bat, an post the output. Then do dir

updating n-m relation with rc4

2003-06-17 Thread oliver . matz
change of behaviour? In the latter case, does the combination of an indirection-table with auto-update=false make sense at all? BTW, I have not been able to reproduce the problem with the bi-directional m-n-relation Project - Person. Regards, Olli -- Oliver Matz ppi Media GmbH

RE: how to update a collection reference

2003-06-17 Thread oliver . matz
Hej Shane, -Original Message- From: Shane Mingins [mailto:[EMAIL PROTECTED] I am using the ODMG API. [..] It would be nice to be able to add and remove the objects from the collection, persist the object holding the collection (the '1' in the 1-n)and have the state of each object

RE: how to update a collection reference

2003-06-16 Thread oliver . matz
Hello, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] I have an object A that have a collection reference to a list of objects B. Is anyone that could help me to understand how can I update the collection reference of the object A? It should be updated

How to switch off batch updates completely

2003-04-01 Thread oliver . matz
Hello, I have found the batch-mode attribute in the jdbc-connection-descriptor. Unfortunately, it does not switch off batches completely. In class org.apache.ojb.odmg.ObjectEnvelopeTable, line 177 ff there is: // 0. turn on the batch mode connMan.setBatchMode(true); //

RE: How to switch off batch updates completely

2003-04-01 Thread oliver . matz
Hello, -Original Message- had a similar problem and it is solved (see Armin Waibels suggestion below): ... Then it should be possible to disable batch-mode with batch-mode=false thank you for your answer, but I already have the latest version. It does not solve the problem

RE: How to use Proxies, was: Re: Null References and Proxies

2003-03-31 Thread oliver . matz
Hello, I am using almost fresh OJB head and the ODMG API. I am still concerned how Proxies can be used in case null references are allowed and frequent. In our object model, there are proxied references which are often null. This causes the following (ugly) warning message when the object is

RE: How to use Proxies, was: Re: Null References and Proxies

2003-03-31 Thread oliver . matz
Hello, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] I am still concerned how Proxies can be used in case null references are allowed and frequent. In our object model, there are proxied references which are often null. I just posted a bug report and a

query for null reference (= foreign key) fields

2003-03-17 Thread oliver . matz
-- Oliver Matz ppi Media GmbH Deliusstraße 10 D-24114 Kiel phone +49 (0) 43 1-53 53-422 fax +49 (0) 43 1-53 53-2 22 email mailto:[EMAIL PROTECTED] web www.ppi.de - To unsubscribe, e-mail: [EMAIL

workaorund for known sybase issue?, was: RE: Sybase: JZ0BE ...

2003-03-13 Thread oliver . matz
Hello again, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] The class has a lot of attributes. Maybe there is a size limitation in sybase. We have found more information: this is sybase known issue #202534, see

Sybase: JZ0BE: BatchUpdateException -- symbol table overflow

2003-03-10 Thread oliver . matz
Hello, I am using OJB with Sybase 11.5 ASE, JConnect 5.5. I have a problem that might be specific to sybase, but maybe someone can help me. I have an application that writes some objects into the database. When I write 30 objects, it works, but when I write 35, it fails with the appended

  1   2   >