Re: Stability

2008-10-08 Thread Armin Waibel
and mysql). Could you give me a hint how to reproduce your issue? regards, Armin JohnE Armin Waibel wrote: johne wrote: In first testing the 1.0.5 RC, I get the error below. This worked as is in 1.0.4. Something different with the count use in the RC? Caused by: java.lang.ClassCastException

Re: Handling Large Resultset in Oracle

2008-10-06 Thread Armin Waibel
documentation). regards, Armin We might think of 1.5 , depending upon what you say. Thanks and Regards, Somendra Paul. - Original Message From: Armin Waibel [EMAIL PROTECTED] To: OJB Users List ojb-user@db.apache.org Sent: Sunday, September 21, 2008 9:05:06 PM Subject: Re

Re: Is it Possible to Update Inheritance Hierarchies?

2008-10-06 Thread Armin Waibel
Hi Cleverson, Schmidt wrote: Hi, Considerer the following hierarchy: Person - Employee - Boss Each class is maped to a distinct table (Mapping Classes on Multiple Joined Tables) In this case, if I create an employee, two records are persisted in the DB (1 person and 1 employee). What if this

Re: Stability

2008-10-06 Thread Armin Waibel
Hi JohnE, johne wrote: We may actually have to go with the 1.0.5 release in production because of our desire to use one of the newer features. The last RC came out 29JAN2008 with the last code changes in subversion on 30JAN2008, so the RC1 does not contain some fixes. Is there anything you

Re: Stability

2008-10-06 Thread Armin Waibel
johne wrote: In first testing the 1.0.5 RC, I get the error below. This worked as is in 1.0.4. Something different with the count use in the RC? Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long which comes from this line as shown in more detail below:

Re: Handling Large Resultset in Oracle

2008-09-21 Thread Armin Waibel
Hi Paul, Somendra Paul wrote: Hi All, I am using OJB1.4 against Oracle10g with classes12.jar. We are trying to export data from the DB, using SQL query which returns 60 records , what we found out that is when we do iterator = query.getIteratorByQuery(),and iterate over the results, we

Re: Blobs

2008-09-16 Thread Armin Waibel
Hi John, the LOB-support of OJB 1.0.4 is very rudimentary (AFAIK OJB always expects that LOB's are byte[] or String fields on java object level). The upcoming OJB 1.0.5 have more experienced LOB-support (don't remind me that I announced the release long ago ;-)). I recommend to give OJB

Re: How to hide database user and password

2008-09-09 Thread Armin Waibel
Hi Frank, Hiller, Frank RD-PT31 wrote: I'm using PB version 1.0.3. Database user and password are in repository_database.xml. How can one hide usr + pwd? I'd prefer to have placeholders there and set both in source code. http://db.apache.org/ojb/docu/faq.html#userPasswordNeeded If you like

Re: OJB Development Activity

2008-09-04 Thread Armin Waibel
Hi Jason, Jason wrote: I have been away from the OJB community for a few years. Based on the state of the website and the SVN repository, it looks like this project has stalled... the last commits were months ago and the last release was in 2005. Is OJB dead, or is active work being done

Re: question about storing objects

2008-05-16 Thread Armin Waibel
Hi Abid, Abid Hussain wrote: Hi again, I think this issue has to something with the materialization of objects (when using proxies). But I thought that proxies are only used, when retrieving a corresponding collection of an object (in 1:n and m:n relations, e.g.

Re: OJB 1.0.4, Oracle 10g and LONGVARCHAR column issue

2008-05-16 Thread Armin Waibel
Hi Vasily, could you please open an issue on OJB-JIRA http://issues.apache.org/jira/browse/OJB and add a detailed description about how to reproduce the issue (then I'm able to write a test case). regards, Armin Vasily Ivanov wrote: Hello, I'm using Oracle 10.2.0.4.0 thin Jdbc driver,

Re: Database Update

2008-05-16 Thread Armin Waibel
Hi Hans, Hans Novak wrote: Hi, how can i update the Database, if i change my Java-sourcecode and with that the database structure, without loosing any data. Until now i use the mysql command to import the SQL-Ascii File, created from OJB with ant. But this deletes first all tables. The

Re: How open 2 different Databases ?ope

2008-05-16 Thread Armin Waibel
Hi Hans, Hans Novak wrote: Hi, my prg works fine with ojb. But now i have to open 2 different Databases (on the same host), because i want to import/export something. How can i do that ? I have only one build.properties file !? OJB can handle different DB at the same time:

Re: question about storing objects

2008-05-16 Thread Armin Waibel
when retrieving a collection through a relation (1:n or m:n, e.g. ShoppingCart.getArticles() - see below)... If you declare proxy=true on collection-/reference-descriptor level (1:1, 1:n or m:n relation) then yes you are right. regards, Armin Regards, Abid Armin Waibel schrieb: Hi Abid

Re: Unexpected result

2008-04-07 Thread Armin Waibel
Hi, johne wrote: Hey all, Been a while since I had need to post. I am looking forward to the new release as I am still on 1.0.3. Thank you for all of the hard work Armin. Using 1.0.3, I am getting an unexpected result with one query using the PB. I am using this query:

Re: Antwort: Re: ObjectEnvelope’s modificat ion detection mechanism – “abort() after fl ush()”

2008-04-05 Thread Armin Waibel
1.0.5RC during the next week. regards, Armin Best regards, Mario Curcija Armin Waibel [EMAIL PROTECTED] schrieb am 21.03.2008 03:42:13: Hi Mario, Mario Curcija wrote: Hi ojb-users, yesterday, I ran into a problem during testing against 1.0.5rc1. Many thanks for testing RC1

Re: updating objects

2008-04-05 Thread Armin Waibel
Hi Abid, Abid Hussain wrote: Hi everybody, I've a table with quite a lot of columns. When using broker.update(object) all columns are updated. Is there a way to only update the columns which actually changed? I'm looking for something like UPDATE MyTable SET MyTableColumn = new_value WHERE

Re: Someone can help-me with my project?

2008-03-26 Thread Armin Waibel
Hi Andre, Andre_LAU wrote: Hello, I'm trying to generate the O/R Mapping information for my project using the XDoclet module. There is some syntax errors that I can't understand. Follow my project and the log generated: http://www.nabble.com/file/p16311031/java.rar java.rar

Re: ObjectEnvelope’s modification detect ion mechanism – “abort() after flush()”

2008-03-20 Thread Armin Waibel
Hi Mario, Mario Curcija wrote: Hi ojb-users, yesterday, I ran into a problem during testing against 1.0.5rc1. Many thanks for testing RC1! The following two tests: - testTransactionFlush() and - testTransactionFlush_2() (both coming from org.apache.ojb.odmg.ODMGRollbackTest) are

Re: Cache Issue in distributed environment

2008-03-12 Thread Armin Waibel
Hi Cedric, Cédric Talon wrote: Hi, I am new on this mailing list and so it is my first message. welcome to this list! I am working on a project which is using OJB in a distributed environment. The distributed issue is my problem ! I have read there are important points to respect in this

Re: Cache Issue in distributed environment

2008-03-12 Thread Armin Waibel
Armin Waibel wrote: I don't find information to configure it with OJB. Can anybody help me ? If you use OJB 1.0.5rc1 change the object-cache element within your jdbc-connection-descriptor to one global cache region: object-cache class=JCS /object-cache a cache region for each class: object

Re: Bugs in 1.0.5rc1

2008-03-10 Thread Armin Waibel
Hi Sascha, Sascha Broich wrote: Hi Armin yep, this is the intended behavior. This method (beside user specific ManageableCollection implementations) only allow base collection classes (List, Set,...). The mentioned line is similar to: Set.class.equals(fieldClass) Okay, if this is intended.

Re: AW: Bugs in 1.0.5rc1

2008-03-07 Thread Armin Waibel
Hi Sascha, Sascha Broich wrote: Hi Armin, The method CollectionTypes#getCollectionClass is correctly implemented. First this method checks for user specific collection class implementations (implementations of ManageableCollection), then this method try to resolve the collection class

Re: Bugs in 1.0.5rc1

2008-03-06 Thread Armin Waibel
Hi Sascha, thank you very much for testing the RC1! Sascha Broich wrote: Hello, I found a bug in org.apache.ojb.broker.core.CollectionTypes#getCollectionClass(Collection Descriptor). The isAssignableFrom check has to be inverted. For instance: HashSet.class.isAssignableFrom(Set.class)

Re: Is it possible to force OJB not use execute a prepared statement?

2008-03-03 Thread Armin Waibel
Hi Roger, Janssen, Roger wrote: Hi, Just a general question about sql statement execution. Is it possible to force OJB not to execute a prepared statement, but to execute the sql as a regular sql statement? Sorry no! The use of prepared statements is deeply rooted in the OJB core. The

Re: BUGREPORT : OJB 1.0.5rc1 : UserAliases in OrderBy clauses are not replaced by the generated aliases for the joins resulting in illegal SQL statements

2008-02-29 Thread Armin Waibel
, Armin Greetings, Roger Janssen iBanx -Original Message- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 27, 2008 2:51 PM To: OJB Users List Subject: Re: BUGREPORT : OJB 1.0.5rc1 : UserAliases in OrderBy clauses are not replaced by the generated aliases

Re: BUGREPORT : OJB 1.0.5rc1 : UserAliases in OrderBy clauses are not replaced by the generated aliases for the joins resulting in illegal SQL statements

2008-02-29 Thread Armin Waibel
of OJB you prefer (1. doesn't work with all DB, or 2. works for all DB but return unexpected duplicates). regards, Armin Roger Janssen -Original Message- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Friday, February 29, 2008 4:56 PM To: OJB Users List Subject: Re: BUGREPORT

Re: case insensitive LIKE and addLike vs addSQL

2008-02-27 Thread Armin Waibel
Hi Thomas, Geike, Thomas wrote: Hi all, I am having trouble to generate case insensitive LIKE sql clauses with ojb. The SQL I want to produce in the end should look something like this: SELECT * FROM table WHERE UPPER(column) LIKE UPPER(user_input); Does anyone know a solution to

Re: BUGREPORT : OJB 1.0.5rc1 : UserAliases in OrderBy clauses are not replaced by the generated aliases for the joins resulting in illegal SQL statements

2008-02-27 Thread Armin Waibel
.reviews.id); If I prefix the path expression with the user alias it seems to work (alias_2.reviews.id instead of alias_2.id). Did you tried this too? regards, Armin Armin Waibel wrote: Hi Roger, I create two new user-alias related bug reports: http://issues.apache.org/jira/browse/OJB-137 https

Re: Mapping a ListInteger (or SetInteger) with OJB.

2008-02-20 Thread Armin Waibel
Hi Johan, Johan Andersson wrote: Greetings! Say I have a class MyClass it looks like this: public class MyClass { private int id; private String name; private ListInteger myIntegers = new ArrayListInteger; /* getters and setters omitted ... */ } What options do I have if I

Re: Isolation level

2008-02-20 Thread Armin Waibel
isolation = jcd.getAttribute(isolation, null); ... } } All shown solutions will work with latest OJB source http://www.mail-archive.com/ojb-user%40db.apache.org/msg16078.html I don't check the older versions. regards, Armin Thanks in advance, CL -Original Message- From: Armin Waibel [mailto

Re: How to check for null values when using proxies?

2008-02-19 Thread Armin Waibel
Armin Waibel wrote: In the 1:n associations I set auto-retrieve=false and proxy=dynamic. As my classes do not implement interfaces, I'm using CGLib as ProxyFactoryClass. Now I get your point. You are using dynamic proxies for the referenced objects (and maybe a proxy reference for the 1

Re: BUGREPORT : OJB 1.0.5rc1 : UserAliases in OrderBy clauses are not replaced by the generated aliases for the joins resulting in illegal SQL statements

2008-02-19 Thread Armin Waibel
, Armin Armin Waibel wrote: Hi Roger, now I get your point (I'm a bit slow on the uptake ;-)). I start writing many new order by tests to isolate the problem and to make sure that changes don't have unrequested side-effects. itself was not stable enough for us). In fact, I helped

Re: How to check for null values when using proxies?

2008-02-15 Thread Armin Waibel
application. As said earlier, I believe proxies should be transparent. Did someone here experience the same problems? Hm, I will have a look at this tomorrow (will try to reproduce your issue). regards, Armin Thank you again! Armin Waibel wrote: Hi, Schmidt wrote: Hi, Consider that an object

Re: How to check for null values when using proxies?

2008-02-15 Thread Armin Waibel
class name. I assume there should be something wrong with my mapping files or some other point in my application. As said earlier, I believe proxies should be transparent. Did someone here experience the same problems? Thank you again! Armin Waibel wrote: Hi, Schmidt wrote: Hi, Consider

Re: How to check for null values when using proxies?

2008-02-14 Thread Armin Waibel
Hi, Schmidt wrote: Hi, Consider that an object A has an association with an object B. Also that dynamic proxies are in use so that when object A is loaded, a proxy to B is created and the object B itself is not materialized. Sometimes, before taking an action, I need to verify if there is a B

Re: Mapping hierarchy in one table problem

2008-02-08 Thread Armin Waibel
Hi, which version of OJB do you use? Schmidt wrote: Hi, I'm facing a hard time trying to fix a problem in my app. Consider the floowing class hierarchy: class Project {..} class ChildProject extends Project {..} class GrandChildProject extends ChildProject {..} How do you set the

Re: Mapping hierarchy in one table problem

2008-02-08 Thread Armin Waibel
Schmidt wrote: Upgraded to 1.0.4 and the problem persists. Any idea? In OJB test-suite we run several tests using table per hierarchy inheritance without any problems. So please, post all information to reproduce your issue - java source code or pseudo code of the java objects and the query.

Re: order by clause in collection-descriptor

2008-02-06 Thread Armin Waibel
Hi Guillaume, Guillaume DROUIN wrote: Hi, Is collection-descriptor can works with 3 fields in the order by clause? Yep, if you use the orderby element: http://db.apache.org/ojb/docu/guides/repository.html#order-by I don't know when we introduced this element, so please check the

Re: BUGREPORT : OJB 1.0.5rc1 : UserAliases in OrderBy clauses are not replaced by the generated aliases for the joins resulting in illegal SQL statements

2008-02-06 Thread Armin Waibel
Hi Roger, now I get your point (I'm a bit slow on the uptake ;-)). I start writing many new order by tests to isolate the problem and to make sure that changes don't have unrequested side-effects. itself was not stable enough for us). In fact, I helped implementing this feature in OJB a

Re: Optimizing object materialization for 1:N relations

2008-02-06 Thread Armin Waibel
Hi Tino, Tino Schöllhorn wrote: Hi, we are using OJB-1.0.1 and evertything works fine. Now I have the following situation: We have a security-mechanism which uses the classes ACL (AccessControlList) and ACLEntry. One ACL has many ACLEntries. Now when using the standard

Re: how to re-read repository.xml file without restarting software?

2008-02-03 Thread Armin Waibel
Hi Joose, Joose Vettenranta wrote: Hi, How to re-read repository.xml file without restarting software? This would nice to have when developing software. This is not intended. Anyway it could be possible when using object metadata profiles - but I never tried this. Start OJB with an

Re: BUGREPORT : OJB 1.0.5rc1 : UserAliases in OrderBy clauses are not replaced by the generated aliases for the joins resulting in illegal SQL statements

2008-02-03 Thread Armin Waibel
Hi Roger, Janssen, Roger wrote: Hi, When you have two object classes, Permit and AbstractAttribute and Permit holds a collection of AbstractAttributes (using a collection descriptor for the abstractattribute collection on the Permit in the mapping file), we can create a query like below:

Re: OJB 1.0.5 release candidate 1 (unofficial)

2008-02-03 Thread Armin Waibel
Hi Reynaldo, Reynaldo Porras García wrote: Hello Armin, I just want to report that I tested OJB_1_0_RELEASE rev 616989 on an application which uses PostgreSQL 8.2.6 and PB implementation. It ran more than 106 junit test and they all passed. Good news! Thanks for this positive feedback.

Re: BUGREPORT (more info availabe) : OJB 1.0.5 - count query in combination with IN-clause

2008-01-30 Thread Armin Waibel
Hi Roger, Janssen, Roger wrote: Hi, Been debugging some OJB code In class PersistenceBrokerImpl, in method OJBIterator getRsIteratorFromQuery(Query query, ClassDescriptor cld, RsIteratorFactory factory), in there this call is made: query.preprocess(this); However, the earlier

Re: BUGREPORT (more info availabe) : OJB 1.0.5 - count query in combination with IN-clause

2008-01-30 Thread Armin Waibel
Hi Roger, I checked in your bug fix to SVN. The OJB test-suite pass without failures (including two new count query tests relating to this bug). regards, Armin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: OJB 1.0.5 release candidate 1 (unofficial)

2008-01-29 Thread Armin Waibel
to have a final copy strategy? Nope! Seems my code improvement goes over the top ;-) I will fix this and revert CopyStrategyImpl to a non-final class. regards, Armin Regards, Ilkka Armin Waibel wrote: Hi all, I have uploaded a first (unofficial) release candidate of the upcoming OJB 1.0.5

Re: BUGREPORT : OJB 1.0.5 release candidate 1 (unofficial)

2008-01-29 Thread Armin Waibel
Hi Roger, thanks for testing the upcoming 1.0.5 release. Janssen, Roger wrote: Hi, Like a reported earlier, something goes wrong with count queries. I can reproduce this bug (thanks for detailed description). When I hack some code in BrokerHelper, to get around the first bug (I don't

Re: Mapping for type BIT broke afer upgrade from 1.0.1 to 1.0.4

2008-01-29 Thread Armin Waibel
Hi Oliver, Oliver Seimel wrote: Hi, we migrated from ojb 1.0.1 to 1.0.4 DB is Postgres. But I think, that the problem is independent of the DB. We use the type BIT(1) for boolean values, so a mapping looks like this: field-descriptor name=emailNotice column=emailnotice

OJB 1.0.5 release candidate 1 (unofficial)

2008-01-28 Thread Armin Waibel
Hi all, I have uploaded a first (unofficial) release candidate of the upcoming OJB 1.0.5 version. The source distribution can be found here: http://people.apache.org/~arminw/ Please give it a go and report any bugs. The source distribution contains a compiled OJB jar and the full

Re: Locking entire table

2008-01-24 Thread Armin Waibel
Hi JohnE, johne wrote: I am using the OJB 1.0.3 PB with MySql 5.0. I have a series of processes that work off of a common table. This common table is refreshed regularly. During this refresh, I would like to do to the affect of: 1. Begin a transaction. 2. Lock

Re: Scaling

2008-01-24 Thread Armin Waibel
Hi JohnE, johne wrote: We have been using OJB for a long time for http://www.jobbank.com, but we are working on a revised version of the job site for a new country. The application needs to be able to scale in a potentially massive way. I am looking at different distributed caching strategies

Re: Isolation level

2008-01-24 Thread Armin Waibel
Hi Christian, Christian Lipp wrote: I am still looking for an solution for my lock level settings and therefore I am digging through the OJB source. What I am not sure at the moment is if the setting of the isolation-level is generally ignored in OJB? descriptor-repository version=1.0

[off topic] Hey Guys!

2007-12-28 Thread Armin Waibel
...sorry for the delay and my unauthorized absence ;-) Six weeks ago our daughter was born and till now I can't spend time on OJB - baby-logistics is a full time job and these days I enjoy staring at the baby instead of the computer-screen. I will be back soon. regards, Armin

Re: Proxy collection and cyclic references

2007-11-14 Thread Armin Waibel
the problem you should be able to write an test without using your en/decrypt methods, only 'normal' objects with cyclic references). regards, Armin Rob -Original Message- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: 13 November 2007 11:28 To: OJB Users List Subject: Re: Proxy

Re: Proxy collection and cyclic references

2007-11-13 Thread Armin Waibel
Hi Robert, Robert Giddings wrote: Hi Guys, Has anyone had any trouble with a proxy collection and cyclic references before? I keep getting StackTraceOverflow errors because of an infinite loop where a collection of objects of one type has a reference to the collection owner object. However I

Re: deprecated LockManagerClass

2007-10-08 Thread Armin Waibel
Hi Robert, Robert den Uijl wrote: Hi, Regarding migration ojb 1.0.1 to 1.0.4 I noticed the following line in ojb.properties # @deprecated LockManagerClass=org.apache.ojb.odmg.locking.LockManagerDefaultImpl If I retain this setting a NPE occurs in the doClose() invoke in

Re: Maps

2007-10-08 Thread Armin Waibel
Message- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: 28 September 2007 16:40 To: OJB Users List Subject: Re: Maps Robert Giddings wrote: Also forgot to mention, what I really want is the XDoclet code that can be used with Maps. Sorry, I don't get it. How are UserType

Re: Different behaviour of SequenceManager in rc5 and 1.0.1

2007-09-29 Thread Armin Waibel
Christian Eugster wrote: Hi Armin, thank you for the hint. Now I have changed all the id field's default value of my objects to null instead of '0'. I updated OJB to 1.0.4 now (good luck!). When I try to store an object I get now the following Exception:

Re: Maps

2007-09-28 Thread Armin Waibel
-Original Message- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: 28 September 2007 14:00 To: OJB Users List Subject: Re: Maps Hi Robert, Robert Giddings wrote: Hi, Does anyone know if and how OJB can handle Maps? can you describe more detailed what you want to do - using maps in 1:n

Re: how to clear cache

2007-09-26 Thread Armin Waibel
Hi Alessandro, Alessandro Colantoni wrote: Hi, When you use OjbPbDAO of Mandragora, in each method it does (through the ServiceLocator) PersistenceBroker broker broker= PersistenceBrokerFactory.defaultPersistenceBroker(); than at the end of the method it does broker.close(); I understand

Re: how to clear cache

2007-09-25 Thread Armin Waibel
Hi Hans, Hans Novak wrote: Hi Ng, i use allesandros mandragora with ojb in mixed-mode. It is working fine, but when i remove objects with mandragora and then read the again with ojb, i get the cached object back, not the one, what hase been saved. When i restart my app, then i get the right

Re: storing objects

2007-09-19 Thread Armin Waibel
in discussions and help other user on the mail lists a committer can suggest this developer to become a committer. regards, Armin Thanks, -Sergey -Original Message- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Friday, September 14, 2007 8:00 PM To: OJB Users List Subject: Re

Re: getPKEnumerationByQuery()

2007-09-18 Thread Armin Waibel
Hi Robert, Robert Giddings wrote: Hi, When using the method getPKEnumerationByQuery() I get the following error: Caused by: java.util.NoSuchElementException at org.apache.ojb.broker.accesslayer.PkEnumeration.nextElement(Unknown S ource) at

Re: Overriding the ProxyList class

2007-09-14 Thread Armin Waibel
Hi Robert, Robert Giddings wrote: The line but this isn't really practical as I can override methods such as indexOf(Object o) as they rely on equals. Should read can't override methods because of relying on equals. Anyway, seems as if the ojb methods are never called as I put some

Re: storing objects

2007-09-14 Thread Armin Waibel
Hi Sergey, Manukyan, Sergey wrote: Hi, About mandragora... it looks like it is a layer on top of PerstenceBroker... my suggestion would be why not to integrate it into OJB and call it something like Simplified API for Persistance Broker (SAP)... ? I only checked the methods of the

Re: n:m mapping problem

2007-09-14 Thread Armin Waibel
of Apache OJB Thanks for your help, Regards, Truong Nguyen On 9/7/07, Armin Waibel [EMAIL PROTECTED] wrote: Hi, your mapping seems ok. Sounds like a bug in OJB. I tried to reproduce your problem without success (using

Re: ojb_blank problem

2007-09-12 Thread Armin Waibel
Hi Hans, Hans Novak wrote: Have you got my mail ? I sorry to say NO. If your mail had an attachment try without again (the apache server is very restrict in handling attachments). regards, Armin Hans Armin Waibel schrieb: Hans Novak wrote: Armin Waibel schrieb: Think

Re: storing objects

2007-09-12 Thread Armin Waibel
Hi Hans, Hans Novak wrote: Hi, i am not shure, but is ist correct when i have an object, witch is a tree of some other objects (colletions) and i delete a part of the tree and then store the hole object (tree) - in the database the deleted object will also be deleted ? Everything works

Re: storing objects

2007-09-12 Thread Armin Waibel
Hans Novak wrote: Did you read the post from Alessandro ? He wrote something to catch this known problem ... I will try it later. yep, I read it. Sorry I don't have the time to check the source code of this project for performance issues/bottlenecks/bugs. I checked method

Re: Error with nested class

2007-09-10 Thread Armin Waibel
Hi Robert, could you please post the mapping and java source for class Country (I expect that this is the class which declares field 'publicationDates'?) too. regards, Armin Robert Giddings wrote: Hi, Can anyone tell me why I get this runtime exception when using OJB as the inner class

Re: Error with nested class

2007-09-10 Thread Armin Waibel
Hi Robert, Robert Giddings wrote: Hi Armin, Here is the code of the class and inner class in question. Rob package com.netcase.netspat.recordSystem.bo; import com.netcase.bo.BaseObject; public class Country extends BaseObject { ... /* * Nested */

Re: ojb_blank problem

2007-09-06 Thread Armin Waibel
Hans Novak wrote: Armin Waibel schrieb: Think this is problem caused by xdoclet itself, because the error starts with error: xjavadoc.TokenMgrError: I suppose you need a Java5/6 compatible xdoclet version (xjavadoc). hmmm... where can i get it ? I use under Linux the latest SUN Java SDK

Re: n:m mapping problem

2007-09-06 Thread Armin Waibel
Hi, your mapping seems ok. Sounds like a bug in OJB. I tried to reproduce your problem without success (using latest version of OJB from SVN OJB_1_0_RELEASE branch) - never get a NPE. I use the mapping from the m:n example (with Person and Project) and do: oid =

Re: ojb_blank problem

2007-09-05 Thread Armin Waibel
Hi Hans, sorry for the late reply. Hans Novak wrote: Hi, i need help to run the ojb_blank projekt (i try with mysql hsql, same errors) If i configure it like the tutorial says, i get in eclipse some errors: first, i get a lot of errors like this: [ojbdoclet] 2007-08-29 13:35:28,017

Re: what's with OJB Project?

2007-08-22 Thread Armin Waibel
Hi Sergey, Manukyan, Sergey wrote: Folks, It has been a while since last release of 1.0.4. I have been a user of ojb since 1.0.2... for about 4 years... but going forward concerns me. With no new releases I would like to ask how does the perspective looks for this project? Well, it depends

Re: Getting repository information

2007-08-07 Thread Armin Waibel
Hi Lasse, Lambrecht, Lasse (Allianz Deutschland AG) wrote: Hello everybody, I'm trying to get some of the information stored in the repository files (of my o/r mapping). So far I tried something like this to get the translation from the Java name of an attribute to the DB2 column name - which

Re: Question regarding metadata handling in ojb 1.0.4

2007-07-26 Thread Armin Waibel
Hi Bernd, Längerich, Bernd wrote: Hi, I am trying to find some information regarding metadata merging in the following scenario: We have a base application with some classes, db tables and a repository_user.xml that describes the mapping. Lets say we have a base class BasePersistentClassA and

Re: QueryBySQL

2007-07-26 Thread Armin Waibel
Hi Krupa, krupa wrote: Hi All, I have several SQLs already written. I want to use QueryBySQL to use the existing SQLs. The problem I am facing is how do I map the result set of these queries to my java classes, especially if I have a result set that includes fields from 3 tables then how do

Re: cancel proxying for custom request

2007-07-26 Thread Armin Waibel
Hi, Maxim Kuleshov wrote: Hello! Most of the times I prefer to use proxying of collections, but in contrast, for certain requests I need no proxying at all. Is there any method to create such custom query? Sorry no. The proxy setting are global and changes will affect all other

Re: Proxy null poiter exception with bad references

2007-06-08 Thread Armin Waibel
Hi Martin, Martin Heyer wrote: Hello Ojb-Users. I have a Cocoon + OJB installation running. For performance reasons there is a dynamic Proxy configured with class B. For example let's have two classes A and B: Class A: (has no proxy) - uid - link - points to uid of class B - B (foreign

Re: per-class cache

2007-05-12 Thread Armin Waibel
Hi, Maxim Kuleshov wrote: Hello! If I use per-class cache feature, will cache instance be created for every distinct class? Guess, it's wasteful to have different caches sharing exactly same behavior. That special cache will be used to store almost-static DB data. How could I implement

Re: Using getReportQueryIteratorByQuery

2007-05-11 Thread Armin Waibel
(NAME_) are the same in both classes/tables. Did you tried to fix the issue using 1.0.4 or did you tried the latest version from SVN (OJB_1_0_RELEASE branch!)? regards, Armin Best regards, Ali On 5/5/07, Armin Waibel [EMAIL PROTECTED] wrote: Hi Ali, sorry for the late reply. Last week I

Re: Using getReportQueryIteratorByQuery

2007-05-11 Thread Armin Waibel
On 5/11/07, Armin Waibel [EMAIL PROTECTED] wrote: Hi Ali, Ali HACHAMI wrote: Hi Armin, I tried to fix the problem by renaming the class's attributes, but the problem is still there. In conclusion the problem happen when the columns have the same name in the tables (not in the classes

Re: java.net.SocketException: Connection reset

2007-05-10 Thread Armin Waibel
Hi Abid, Abid Hussain wrote: Hello everybody, I'm using OJB in my web applicatin now for more than one year, and it did really fine. But since some time an exception occurs which I can't figure out. Obviously the connection to the backend was reset. May it be the case that the db

Re: anonymous keys and PK in 1.0.4

2007-05-05 Thread Armin Waibel
Hi Sergey, sorry for the late reply. Last week I a had DSL malfunction caused by my Internet provider. It seems to be fixed (works again for 20 hours), but it could happen that I'm out of business again. PersistentBroker.delete(new AmortizedToolingSchedulePO(amortizedToolingSchedule,

Re: In criteria in PersistenceBroker.getCount(query)

2007-05-05 Thread Armin Waibel
Hi Tadeus, Tadas Garsva wrote: Hi, It seems to me that inCririteria is ignored if I use it in query to get number of elements. For example: Query q=QueryFactory.newQuery(clazz,criteria,true); int n=getBroker().getCount(q); where criteria has a inCriteria Because of failing details how

Re: internationalization with OJB

2007-05-05 Thread Armin Waibel
Hi Ozkan, sorry for the late reply. Last week I a had DSL malfunction caused by my Internet provider. It seems to be fixed (works again for 20 hours), but it could happen that I'm out of business again. zkn wrote: Is internationalization possible with OJB? yep! why not? I'm not sure if

Re: help with non decomposed M:N

2007-04-18 Thread Armin Waibel
Hi Ramzi, Ramzi Oueslati wrote: Hello everyone, I've been trying to use OJB lately but I'm a newbie and I'm stuck with handling simple non decomposed M:N relationships. Here's my purpose : ... *** You might have noticed the collections auto-retrieve setting is set to 'false'. If I set

Re: best solution for updating many objects ?

2007-04-18 Thread Armin Waibel
Hi Björn, Björn Agel wrote: can you give a code example pls ? im sticking in how to execute plain sql with ojb ... you can lookup Statements from the connection and perform the update by your own http://db.apache.org/ojb/docu/guides/connection.html#Can+I+directly+obtain+a or you can use

Re: help with non decomposed M:N

2007-04-18 Thread Armin Waibel
Ramzi Oueslati wrote: Hi Armin, Thank you for your reply. Sure I can and here it is. This is when I try to update an already persisted instance of A : java.lang.NullPointerException at org.apache.ojb.broker.metadata.DescriptorRepository.getDescriptorFor(DescriptorRepository.java:409)

Re: Problem w/ SequenceManagerTransientImpl in 1.0.4

2007-03-31 Thread Armin Waibel
Hi, Armin Waibel wrote: We encountered a problem with the SequenceManagerTransientImpl. We have two objects that are related; bank account has a bank on it. A key to the bank account table has a custom FieldConversion implementation for encryption/decryption associated with it. When we

Re: Object references go null when using ObjectCacheDefaultImpl

2007-03-30 Thread Armin Waibel
Hi Andrew, Andrew Fortier wrote: Hi all, I've been chasing down a bug that has been rearing it's head every now and again. Hopefully someone on this list has an idea of what might be going on. Occasionally an reference from one object to another will null out spontaneously. Example: A

Re: Problem w/ SequenceManagerTransientImpl in 1.0.4

2007-03-30 Thread Armin Waibel
Hi Ailish, all comments based on latest version from SVN OJB_1_0_RELEASE branch. If possible please test the upcoming version (read carefully the release-notes before use ;-)). To get the sources use a SVN-client with: http://svn.apache.org/repos/asf/db/ojb/branches/OJB_1_0_RELEASE Byrne,

Re: AW: ReportQueryBySQL

2007-03-27 Thread Armin Waibel
Nachricht- Von: Armin Waibel [mailto:[EMAIL PROTECTED] Gesendet: Samstag, 24. März 2007 00:19 An: OJB Users List Betreff: Re: ReportQueryBySQL Hi Norbert, [EMAIL PROTECTED] wrote: Hello, we use OJB as persistence layer. Due to project specific needs, we've built another layer on top of OJB

Re: massive performance problem with q.setStartAtIndex() and q.setEndAtIndex()

2007-03-26 Thread Armin Waibel
Hi Björn, (sorry for the late replay, googlemail marked you as spam) in upcoming OJB 1.0.5 native limit/offset will be supported for most popular databases and can be easily implemented for all databases. See also: http://marc.info/?l=ojb-userm=117320896526677w=2 regards, Armin Björn Agel

Re: massive performance problem with q.setStartAtIndex() and q.setEndAtIndex()

2007-03-26 Thread Armin Waibel
Hi Matthias or other DB2 user, some time ago i checked in native limit/offset support for the most popular databases. But I don't have DB2 installed. It would be great if a DB2 user could test the native limit/offset support for DB2. TODO: - Get the latest version from SVN OJB_1_0_RELEASE

Re: ojb first use

2007-03-23 Thread Armin Waibel
Dolphin06 wrote: Hello, i created a new project in Netbeans then import ojb-blank.jar, then i copy the OJB.properties, repository.xml, repository.dtd in WEB-INF. It wasnt working. So as you said to me in your reply i put the file in WEB-INF/classes, it still wasnt working like this. It

Re: performance question

2007-03-23 Thread Armin Waibel
Hi Björn, [EMAIL PROTECTED] wrote: hi there, assuming we need multiple lists of objects from the db. which of the following solutions do perform better? 1) 1 db call using the ojb collection descriptor with retrieve = true (multiple joins) i heard about performance issues with too many joins

Re: Simple query

2007-03-23 Thread Armin Waibel
Hi Andrei, Andrei Harangus wrote: Having the following class: class Clazz { private String field1; private String field2; } Mapped to table tbl1(field1, field2) What is the code snippet that would generate the sql select * from tbl1 where field1 = field2 Criteria crit = new

  1   2   3   4   5   6   7   8   9   10   >