Weird things with anonymous attributes an Indexes

2004-10-28 Thread Sylvain juge
i'm quite a newbie using OJB, but I think that I found womething weird When using an index on two tables fields, it seems that if one of the two fields is an anonymous field, the index is simply forgiven on runtime. Here is the working example : [AbstractRoom.java] /** * * --- Artif

Re: collection loading and filtering

2004-10-28 Thread LE-QUERE Gildas - REN
Hi Jakob, I post that today. Gildas - Original Message - From: "Jakob Braeuchi" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Wednesday, October 27, 2004 6:55 PM Subject: Re: collection loading and filtering hi gildas, could you please post the sql without and wit

Repost: OTM & PBLifeCycleListener

2004-10-28 Thread Sebastian
Hi, my basic question is, how can I have object properties auto updated on insert, update or delete. Not only in the object instance that is internally hold by OJB/OTM but also in the object instance on which the OTMConnection.makePersistent method is called. I know that it's fairly easy to cre

Re: collection loading and filtering

2004-10-28 Thread Jakob Braeuchi
hi charles, imo projectionAttributes and prefetcheRelationships are two completely different things. afaik (after trying to write a testcase) projectionAttribute change the search_class of a query. jakob Charles Anthony schrieb: That'd be cool - I've never even heard of it, and a search of the m

ReportQuery and NVARCHAR/NTEXT?

2004-10-28 Thread Ryan Vanderwerf
Hi, I'm trying to use a report query on tables with NTEXT and NVARCHAR (MSSQL Server 2k), and I get a NullPointerException (I've verified the db-value I am selecting wasn't null): java.lang.NullPointerException at org.apache.ojb.broker.util.JdbcTypesHelper.getObjectFromColumn(Unknown

Re: Problem Memory Tomcat and OJB

2004-10-28 Thread Reda Benzair
Hi! We are running OJB on our production serveur (tomcat 4.1.30 in this case). The JVM was running troubles after running a while so I've modified my app to count objects that are loaded : we have a static Map (key=class.getName(), value=count) that counts the total number of live instances

Re: Bug in Cache?

2004-10-28 Thread Armin Waibel
Hi Joose, Joose Vettenranta wrote: Hi, actually changing the code is in this case very very difficult, so the question is, can this be accomplished using ojb? Something like making reference-descriptor readonly or something? Problem, I save referenceId and ojb cache won't make connection between

Re: Bug in Cache?

2004-10-28 Thread Joose Vettenranta
Hi, actually changing the code is in this case very very difficult, so the question is, can this be accomplished using ojb? Something like making reference-descriptor readonly or something? Problem, I save referenceId and ojb cache won't make connection between id and reference object. Thanks,

Re: Bug in Cache?

2004-10-28 Thread Joose Vettenranta
I think I know why this is happening. I save to tableB just a id of tableC not the object of tableC. So I have to change my program so it saves objectC and not id of objectC. - Joose 28.10.2004 kello 10:40, Joose Vettenranta kirjoitti: Hi, I think I found a bug from Cache. I Think I have like th

Bug in Cache?

2004-10-28 Thread Joose Vettenranta
Hi, I think I found a bug from Cache. I Think I have like this: Table A [1:n] Table B [1:1] Table C [1:n] Table D when using DefaultCacheImpl or ObjectCachePerClassImpl it works funny. When I store data it works ok, data is stored to database, but when I want to retrieve data from database I just