Re: competitive locking configuration

2003-03-24 Thread Armin Waibel
Quoting Armin Waibel ([EMAIL PROTECTED]): Should I just be setting up ObjectCacheEmptyImpl instead of ObjectCacheDefaultImpl? Is that enough? Yes, this should be enough. (And it's recommended to use an database based sequence manager implementation, like SequenceManagerNextValImpl

How to Min/Max

2003-03-24 Thread Jacob Hookom
Hey all, the mail archives are not working properly atm, so I'm sorry for the post, but I'm wondering how to handle grabbing the min/max in a query without doing a comparator on the returned List? Many Thanks! Jacob Hookom The first rule of intelligent

RE: Which object comes from ReportQueries ?

2003-03-24 Thread Charles Anthony
Report queries do not return materialized objects ! The iterator.next() returns an object array (Object[]) consisting of the columns returned from your query. In your code, it would be a one dimensional array containing the value of the column that is mapped to Workstation.workstationType

RE: Which object comes from ReportQueries ?

2003-03-24 Thread Charles Anthony
Pretty much, yes... Of course, you should be able to work out which class of object it is and cast it appropriately (e.g. if workstationType column is a VARCHAR, cast to string etc.) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 10:05 To: [EMAIL

Network error- Socket closed

2003-03-24 Thread Emmanuel Dupont
All, I'm playing with Ojb and the Kategorien/Artikel tutorial. I noticed that when I ask 3 times the same request to the database, I have this error below. Why it is not possible to request more than3 time the same request to the database? ??? java.sql.SQLException: Network error-

Re: ODMG Query over objects always returns a Collection (DList)?

2003-03-24 Thread Robert S. Sfeir
The Collection (DList which is changeable from the OJB.properties) DOES contain a User object. On Friday, March 21, 2003, at 12:38 PM, Edson Carlos Ericksson Richter wrote: Hi! Table: UsersTable (id, username, password) - mapped to User object with same properties. where id is Primary Key,

Re: ODMG Query over objects always returns a Collection (DList)?

2003-03-24 Thread Robert S. Sfeir
I should add that a DList or Collection of some type is returned is actually a good thing. Why? Take a scenario where you have a User object and we're returning a User object from OJB. You use that object all over your code. One day you decide to change the User object and call is People.

P6Spy ...

2003-03-24 Thread Emmanuel Dupont
All, How can I activate the P6Spy in an IDE tool? I don't use the build.properties file ans I would like top activate the P6Spy .. Tx !

mass inserts

2003-03-24 Thread Yuji Shinozaki
When we do a lot of inserts at once, it seems like OJB does a lot of pre-querying. I think this is for deciding whether a new object consistutes an UPDATE or an INSERT. For mass-loading of objects (which we know will be new unique INSERTS). Is there anything we could do to optimize the

RE: mass inserts

2003-03-24 Thread Lance Eason
Have you tried 'broker.store(article, ObjectModificationDefaultImpl.INSERT)'. The optional second argument to store tells OJB whether it is an update or an insert. -Original Message- From: Yuji Shinozaki [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 8:54 AM To: OJB Users List

auto_increment problem?

2003-03-24 Thread Chuck Grohowski
I noticed a strange anomaly when using OJB with auto_increment fields in MySQL. After doing a few inserts of new objects, the auto_increment field has values in the hundreds. Is this behavior normal or is there something going awry? Any help is appreciated. Thanks! Chuck

Help : Long / BIGINT Bug ??

2003-03-24 Thread Emmanuel Dupont
All, All my primary Key are in the BigInt type. In my repository.xml I have a 'BIGINT' jdbc-type, in my javaObjects I have the type Long and all the ojb-requests are like it is a Varchar type. SELECT A0.OBVID FROM Table WHERE A0.OBVID = '15' Is There a trouble with the jdbc

RE: mass inserts

2003-03-24 Thread Yuji Shinozaki
On Mon, 24 Mar 2003, Lance Eason wrote: Have you tried 'broker.store(article, ObjectModificationDefaultImpl.INSERT)'. The optional second argument to store tells OJB whether it is an update or an insert. I knew there had to be something like this! It's on top of our list of things to try.

RE: Webapp google queries: What is a good way to present multiple web pages with query results ?

2003-03-24 Thread Scott Howlett
Mail list archive seems not to be working properly, otherwise I'd point you to previous postings 1. Use query.setStartAtIndex() and setEndAtIndex() to specify which records you actually want to retrieve in the query. 2. Implement the functionality that translates these parameters into

Join Creation Exception

2003-03-24 Thread Ricardo Tercero Lozano
I got an exception when running this piece of code, a search with a criteria that produces a SQL with a JOIN statement (on colegiate.name): - ... if(collegiateName != null collegiateName.trim().length() 0){ crit.addLike(upper(colegiate.name), % +

Re: auto_increment problem?

2003-03-24 Thread Armin Waibel
Hi Chuck, Could you post a little more info. Which OJB version? Which sequence manager implementation do you use, or post your repository_database.xml file (if you use one). regards, Armin - Original Message - From: Chuck Grohowski [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED]

Re: Fw: is it possible? - same class mapped to different tables

2003-03-24 Thread sclark
Rajeev, Somebody else had asked the same question right before you did; here's the answer I sent to the list at that time: What I've done in this situation is to make an abstract Note class which has all of the behavior of a Note. Then create two empty subclasses, InvoiceNote and

AW: A smart way to set maximum number of records returned by a Query (ORACLE)

2003-03-24 Thread Geigl Maximilian, R235
Hi, we use sequence-manager className=org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl attribute attribute-name=grabSize attribute-value=10/ /sequence-manager in the connection-pool decription in repository_database.xml Maybe this can help you.

Re: apply caching with condition

2003-03-24 Thread sclark
Thomas, Create a new cache class which extends ObjectCacheDefaultImpl; you just need to override one method: public void cache(Identity oid, Object obj) { if (oid.getObjectsClass() /* should be cached */) { super.cache(oid, obj); } } It might make more sense

Re: AW: A smart way to set maximum number of records returned by a Query (ORACLE)

2003-03-24 Thread Thomas . Gaudin
Hi, Thanks for the advice but I am not sure the grab size attribute of the sequence manager has something to do with the size of the results. From my understanding it is only related to OJB default SequenceManager and this attribute specify the gap between auto generated keys... Can one of our

Re: Update and Save Problem

2003-03-24 Thread Jakob Braeuchi
hi claudio, please add more of the stack trace jakob Claudio Romano wrote: i have a problem to update and/or save my class to the database. The repository and the class seems to be ok. But everytime i save or update my Class i become the following error: Cannot convert class

RE: A smart way to set maximum number of records returned by a Query (ORACLE)

2003-03-24 Thread Matthew Baird
I wrote that code :) so, if your driver/db combo support cursoring, setting the begin and end index will allow you to just display a window of results. The efficiency is based on the db, but it's worked for us on SQL Server and Oracle so far. OJB will execute the query, then use the cursor to

RE: mass inserts

2003-03-24 Thread Yuji Shinozaki
On Mon, 24 Mar 2003, Lance Eason wrote: Have you tried 'broker.store(article, ObjectModificationDefaultImpl.INSERT)'. The optional second argument to store tells OJB whether it is an update or an insert. Ah. Success! A load which one took an hour now takes 3 minutes. If that proportion

html tags

2003-03-24 Thread Ismail Siddiqui
Hi, I am displaying some text on a web page using OJB. This text has some html tags like I . It is getting converted into html entity like lt; Which is printing tag itself . How do I turn off this feature??? Thanks ismail

RE: Network error- Socket closed

2003-03-24 Thread Ryan Vanderwerf
I too get these errors quite a bit. It looks like you are using SQL server, I am also. I am using the Opta2000 driver (commercial) from inetsoftware.de, and right now I've found best results using their pooled driver, turning off OJB's connection pool. I'm still trying to unravel this mystery, it

Indirection table with two columns reference

2003-03-24 Thread Mario Toffia
Hi, Is it possible to use two columns as 'fk-pointing-to-this-class' since inserts will yield null in other column on current configuration. I cannot change the way it looks like in the database. Is my only option to use the indirection table and have it in the collection instead of having

RE: setup and list archive problems

2003-03-24 Thread Shane Mingins
I had that problem and so I downloaded and extracted the source as well and it worked. I think I saw somewhere where it is suggested to do that. Yes, the mailing list archive is broken. I do not who/when it is to be fixed? -Original Message- From: Bonnie MacKellar [mailto:[EMAIL

RE: setup and list archive problems

2003-03-24 Thread Bonnie MacKellar
Actually, I tried that, but ran into problems building the source. Since there is very little documentation, I decided I was silly for trying to build the source when there is a binary distribution. OK, I will ask about building the source distribution then. When I run build junit with the source

RE: setup and list archive problems

2003-03-24 Thread Shane Mingins
Did you read the sections under User Documentation? I am new to OJB and working in a Windows 2000 environment but have it working against an AS400 database. I also had 0.9.8 working against MySQL. So from memory... I downloaded and extracted both the source and binary archive files to the same

Proxy updates

2003-03-24 Thread Edson Carlos Ericksson Richter
Hi! I think I've lost something in the way she moves...: I get a list of objects using OQLQuery. In XML I've used proxy=dynamic. Works fine. I show the objects in a JTable. Fine. All working. Great. Fast, works as many time I test. Now, user change a value in a cell (I don't allow user to

ODMG Query over objects always returns a Collection (DList)?

2003-03-24 Thread Edson Carlos Ericksson Richter
Hi! Table: UsersTable (id, username, password) - mapped to User object with same properties. where id is Primary Key, and username is a unique key. Well, if I query select user from User where username = $1 and password = $2, ODMG will always return a collection when I issue query.execute()?

RE: Deploy OJB in WebLogic Server

2003-03-24 Thread Chiah Tong Kiat
Hi I've read the deploy guide in the CVS. I've 1 question, does it mean that I could only deploy 1 version ojb in the same weblogic instance? Is there any way I could deploy multiple version of OJB (0.97, 0.99, 1.0rc1, etc) in the same weblogic instance if I'm hosting multiple application