OJB + Custom connection

2003-03-20 Thread Edson Carlos Ericksson Richter
Hi! Isto possible to open external connection and then configure OJB to use it (not the one in repository.xml - in real, is better if I don't need to configure connection in repository.xml, besides I think this is not possible). I wan't to use a user authenticated database connection, not one

Re: OJB + Custom connection (solved)

2003-03-23 Thread Edson Carlos Ericksson Richter
Well, in real I had two diff questions. But you have answered all of them. Thanks. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.463 / Virus Database: 262 - Release Date: 17/3/2003

Re: Multiple primary keys in ojb tables

2003-03-23 Thread Edson Carlos Ericksson Richter
I think that mostly databases allow only one primary key and several unique keys. Two type of keys allow references (by foreign keys). So, we can say that unique keys is a king of primary key (except that Primary keys don't allow nulls, and unique keys allow one value null). I expect this explain

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()?

Proxy updates

2003-03-25 Thread Edson Carlos Ericksson Richter
Hi! I think I've lost something on the way... 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. Now, user change a value in a cell (I don't allow user to change Primary Key). Change made by the user is set in

Re: Invalid argument value: Not unique table/alias: 'A1'

2003-04-04 Thread Edson Carlos Ericksson Richter
Yes! This solves a problem I've reported a real very long time ago (pre 0.9.7)... But in that time I had no space in my project time to investigate to get more details on it... Thanks João Luz, thanks Jakob Braeuchi... I'm ansious for rc3 ;-) Edson Richter --- Outgoing mail is certified

RemovalAware...

2003-06-06 Thread Edson Carlos Ericksson Richter
I already sen't a test case to show the problem related to RemovalAware+Proxy 1:N relations... Someone has confirmmed this bug or it get's fixed in CVS? Thanks, Edson Richter --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.488

RemovalAwareList status

2003-05-29 Thread Edson Carlos Ericksson Richter
Any news? Thanks, Edson Richter --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.484 / Virus Database: 282 - Release Date: 27/5/2003 smime.p7s Description: S/MIME cryptographic signature

Get a JDBC connection to give to another lib

2003-05-31 Thread Edson Carlos Ericksson Richter
Hi! I've a lib that needs a JDBC connection to work. The correct way to obtain a connection is: java.sql.Connection cn = pbroker.serviceConnectionManager.getConnection(); ??? Thanks, Edson Richter --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system

Re: Best Practices: Dates

2003-06-10 Thread Edson Carlos Ericksson Richter
You should declare field-descriptor name=startDate column=StartDate conversion=org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlTimest ampFieldConversion jdbc-type=TIMESTAMP/ This should make things work (at least, WFM). Edson Richter - Original Message - From: Aaron

Re: Removing objects from collections...again

2003-06-11 Thread Edson Carlos Ericksson Richter
The RemovalAwareCollection still not work for me under 1:n specific. With m:n works like a charm. I don't understand why. If RemovalAwareCollections are working for you, can you try the testcase I've sent some time ago? I think that I'll need some kind of fix already in CVS but not in 1.0rc3...

Possible CollectionProxy bug?

2003-06-12 Thread Edson Carlos Ericksson Richter
I think I get RemovalAwareCollection working with proxied classes. The method afterStore in CollectionProxy should not be: public void afterStore(PersistenceBroker broker) throws PersistenceBrokerException { Collection c = getData(); if( c instanceof ManageableCollection )

Re: Non-decomposed m:n mappings with ODMG

2003-06-12 Thread Edson Carlos Ericksson Richter
I had this kind of error when I wrong defined the keys... M:N mappings work for me, even OJB PB Api ODMG (besides actually I don't work with ODMG). Edson Richter - Original Message - From: Henrik Berg [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Thursday, June 12,

Re: Non-decomposed m:n mappings with ODMG

2003-06-12 Thread Edson Carlos Ericksson Richter
Of course, I don't use auto-update/auto-delete (that was motivation I got to PB Api). (shamed) Edson Richter - Original Message - From: Edson Carlos Ericksson Richter [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Thursday, June 12, 2003 11:36 AM Subject: Re: Non

Re: Possible CollectionProxy bug?

2003-06-13 Thread Edson Carlos Ericksson Richter
Anyone can confirm that this is a bug or not? Thanks, Edson Richter - Original Message - From: Edson Carlos Ericksson Richter [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Thursday, June 12, 2003 11:13 AM Subject: Possible CollectionProxy bug? I think I get

Re: addLessThan or addBetween with Dates in mySQL

2003-06-16 Thread Edson Carlos Ericksson Richter
Hi! I've used Dates normally with less than, greater than and between with SapDB. Unique thing I had todo is put a conversion in field like: conversion=org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlTimest ampFieldConversion then it works for me. Edson Richter - Original

M:N little bug

2003-06-20 Thread Edson Carlos Ericksson Richter
Hi! Debugging again the M:N relationships, so we can work as expected with proxies I've found the following bug (line 815, PersistenceBrokerImpl) that make an Item be deleted even if we set auto-delete, auto-update=false in non-decomposible: if( col instanceof

Latest CVS (rc4?), collection-class no longer work as defined in DTD

2003-06-26 Thread Edson Carlos Ericksson Richter
Hi! In my M:N testing work, I've discovered that class-descriptor now works ONLY for ManageableCollections now. This problem is caused by private ManageableCollection getCollectionByQuery(Class collectionClass, Class itemClass, Query query) ... result =

SOLUTION for M:N never delete or always delete, no matter auto-delete=true or auto-delete=false

2003-06-26 Thread Edson Carlos Ericksson Richter
(this is a real long mail, but I've made a long research. The first part is the reason I started to research, the second is explain why this occur. The third is a suggestion of how can we correct). FIRST PART: Ok. To avoid the problem related to OJB always using RemovalAwareCollection, I put my

Re: SOLUTION for M:N never delete or always delete, no matter auto-delete=true or auto-delete=false

2003-06-26 Thread Edson Carlos Ericksson Richter
table. collection is not removal aware. jakob Edson Carlos Ericksson Richter wrote: (this is a real long mail, but I've made a long research. The first part is the reason I started to research, the second is explain why this occur. The third is a suggestion of how can we correct). FIRST PART: Ok

Re: SOLUTION for M:N never delete or always delete, no matter auto-delete=true or auto-delete=false

2003-06-26 Thread Edson Carlos Ericksson Richter
Mahler wrote: Hi again, Edson Carlos Ericksson Richter wrote: (this is a real long mail, but I've made a long research. The first part is the reason I started to research, the second is explain why this occur. The third is a suggestion of how can we correct). FIRST PART: Ok. To avoid

Re: Dynamic proxies and references Help

2003-07-04 Thread Edson Carlos Ericksson Richter
I trying some advanced config in my app, and I've found same problem. Appear that AssertFkAssignment is missing converting Proxy to Objects. I've tried to change the line fld.getPersistentField().set(obj, refPkValues[i]); to

Re: Dynamic proxies and references Help

2003-07-04 Thread Edson Carlos Ericksson Richter
converted into a real object before assertFkAssignment() is called. see store() // ProxyObjects only have to be updated if their real subjects have been loaded obj = ProxyHelper.getRealObjectIfMaterialized(obj); jakob Edson Carlos Ericksson Richter wrote: I trying some

Typo in PersistenceBroker?

2003-07-07 Thread Edson Carlos Ericksson Richter
I'm mostly using getCollectionByQuery( Query ) that returns a collection. Now, I'm trying to use getCollectionByQuery( Class collectionClass, Query query ), but this one returns a ManageableCollection. Should not this returns a Collection? Thanks, Edson Richter --- Outgoing mail is certified

Re: Typo in PersistenceBroker?

2003-07-07 Thread Edson Carlos Ericksson Richter
More, should not ManageableCollection extends Collection??? Actually (cvs HEAD) this extends only Serializable (?!?!). My2c, Edson Richter - Original Message - From: Edson Carlos Ericksson Richter [EMAIL PROTECTED] To: 'OJB Users List' [EMAIL PROTECTED] Sent: Monday, July 07, 2003 5

Re: Weblogic, threads, and startup errors

2003-07-07 Thread Edson Carlos Ericksson Richter
PROTECTED] -Original Message- From: Edson Carlos Ericksson Richter [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 4:30 PM To: OJB Users List Subject: Re: Weblogic, threads, and startup errors I don't know about you, but I had all kind of strange errors working with long time

Re: Weblogic, threads, and startup errors

2003-07-07 Thread Edson Carlos Ericksson Richter
like your code below!! The problem is more fundamental than this. It is something to do with the interaction of Weblogic, OJB startup code, and threading. Bonnie MacKellar software engineer Mobius Management Systems, Inc. [EMAIL PROTECTED] -Original Message- From: Edson Carlos Ericksson

Re: 1:m-relation

2003-07-09 Thread Edson Carlos Ericksson Richter
Yes, exactly what I do. But see, to B instances be stored in database, you must put auto-update='true' in your collection descriptor. In real, I use a collection class RemovalAwareCollection (or a specialized RemovalAwareList that I've created) to auto-delete. So, if I a.getCol().remove( 0 );

Re: DateTime conversion problem again

2003-07-09 Thread Edson Carlos Ericksson Richter
What your GMT? In my case, all date/time are stored in database with -3 hours, because I'm on GMT-3. I'm using SapDB. I think that is this you getting, and it's a internationalization Java feature... Can someone else confirm this? Edson Richter - Original Message - From: Mykola

Re: Migrating from OJB 0.9.7 to OJB 1.0.rc3

2003-07-09 Thread Edson Carlos Ericksson Richter
Can you try to change from log.error to e.printStackTrace() so we can have more info about line/stack trace? The code you are using to obtain the broker is exatly same I'm using, so it's right. What about .xml and .dtd? You remembered to updated too? Edson - Original Message - From:

Re: Help in store function call in PersistenceBroker

2003-07-09 Thread Edson Carlos Ericksson Richter
I had this (exactly) stack trace when I made some reference (foreign key) with two fields mapping for a table that has only one field in primary key. I think OJB must check if fkfields[].length == pkfield[].lenght, and throw a better explanatory exception. The code in PersistenceBrokerImpl should

Re: 1:m-relation

2003-07-09 Thread Edson Carlos Ericksson Richter
Hi! The persistence should occur automatically when auto-update=true, even using Vectors. Are you working with OJB Api, ODBC or JDO? The samples I've shown uses OJB Api. And of course, I use transactions... (or I store A and all instances of B, or don't store anything. This is a must when

RE: ConnectionManager is already in transaction

2003-07-15 Thread Edson Carlos Ericksson Richter
Is my understanding of ODMG correct? (I'm basing this on Tutorial #2) Dave -Original Message- From: Edson Carlos Ericksson Richter [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 6:13 AM To: OJB Users List Subject: RE: ConnectionManager is already in transaction

Re: [MAPPING] MS SQL Server and DATETIME conversion

2003-07-15 Thread Edson Carlos Ericksson Richter
I'm not sure, but I think you need a conversion: field-descriptor name=edatum conversion=org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlTimest ampFieldConversion column=EDATUM jdbc-type=DATE / I've used this with SapDB and MS SQL 2K in my apps and

Re: [MAPPING] MS SQL Server and DATETIME conversion

2003-07-17 Thread Edson Carlos Ericksson Richter
: [MAPPING] MS SQL Server and DATETIME conversion Hello Edson, i'm still struggling with my problem. Can you pleas tell me how you ensure not to deliver time part. Max -Ursprüngliche Nachricht- Von: Edson Carlos Ericksson Richter [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 15

Re: Confused about SequenceManager and MSSQL's uniqueidentifier

2003-07-31 Thread Edson Carlos Ericksson Richter
Yes, there is a way to obtain the sequence value generated by a identity field in MsSQL Server. After the insert, in same session, execute select @@IDENTITY and you will have the value! This can be used by an special SequenceManager in OJB? Best regards, Edson Richter - Original Message

Re: Confused about SequenceManager and MSSQL's uniqueidentifier

2003-07-31 Thread Edson Carlos Ericksson Richter
on a table. Thanks for every ones help. -Andrew On 7/31/03 9:42 AM, Edson Carlos Ericksson Richter [EMAIL PROTECTED] wrote: Yes, there is a way to obtain the sequence value generated by a identity field in MsSQL Server. After the insert, in same session, execute select @@IDENTITY and you

Large database force use of recordset

2003-08-14 Thread Edson Carlos Ericksson Richter
Hi! I'm using a large database to make some reporting. The problem is when I need to show a report with about 10 records. This just freeze my machinery, and after 10 minutes, I get OutOfMemoryException... Yes, I know that I should use java -Xmx 128M -Xms 64M and so on, so I'll get things

Re: newbie q: Criteria for java.util.Date

2003-09-02 Thread Edson Carlos Ericksson Richter
Have you tried to use org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlTimestampFieldConversion as conversion in XML? Works for me like a charm. Best regards, Edson Richter - Original Message - From: Raoul Markus To: OJB Users List Sent: Monday, September 01, 2003

Dynamic proxies and DB index usage optimization

2003-09-04 Thread Edson Carlos Ericksson Richter
Hi! I'm using dynamic proxy feature in a large database. I've detected the OJB always try to get every field, even if it is not used (in dynamic proxy, only the PK is required). This gives a performance penalty in large databases. I've a large database that takes near 60 seconds to load 5000

CVS HEAD error

2003-09-04 Thread Edson Carlos Ericksson Richter
Ive downloaded CVS HEAD some minutes ago. First off all, I don't get build ( "bin/build.bat jar" ) working until I delete the JDO folder... Is some .JAR missing? I had put j2ee.jar into lib. Theother is the method close in PersistenceBrokerHandle, thatshould be corrected to public

upgrade from rc3 to CVS Head rc4 doesn't work

2003-09-04 Thread Edson Carlos Ericksson Richter
I've just updated from rc3 to CVS Head rc4 and now I'm facing problems. First one is a Null Pointer Exception in org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.getColName(SqlQueryStatement.java:278)

Re: upgrade from rc3 to CVS Head rc4 doesn't work

2003-09-05 Thread Edson Carlos Ericksson Richter
Ok, let's go. My app is working for month on top of rc3 (with some bug fixes - I am using a CVS Head until 1.0 final doesnt came to us, the mortals). Yesterday I've downloaded rc4 and noticed changes in OJB.properties and DTD. I've adjusted the new OJB.properties to my app (I'm using beans with

Regular expressions - may be off topic

2003-09-05 Thread Edson Carlos Ericksson Richter
Hi! Someone could think this is off-topic to this list (excuse-me), but I'm using OJB in NetBeans environment, and now I want to make a JAR file, but I want repository_database.xml keep out. I know that (.class$)|(.xml$)|(.config$)|(.properties) will match all .class and .xml files I need

Re: upgrade from rc3 to CVS Head rc4 doesn't work (solved)

2003-09-05 Thread Edson Carlos Ericksson Richter
statement doesn't make sense. I checked in your changes. Thanks!! regards, Armin - Original Message - From: Edson Carlos Ericksson Richter [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Friday, September 05, 2003 4:30 PM Subject: Re: upgrade

How to use DUAL

2003-09-08 Thread Edson Carlos Ericksson Richter
Hi! I want to execute a query in OJB to obtain database server DATE. The query is selectTIMESTAMP from DUAL How can I accomplish this using OJB? Should I use Procedures? Thanks, Edson Richter ---Outgoing mail is certified Virus Free.Checked by AVG anti-virus system

Re: non-decomposed m:n mapping deleting incorrectly

2003-09-08 Thread Edson Carlos Ericksson Richter
You must specify the class used. By default, OJB will use RemovalAwareCollection, that will delete values... Just put: collection-descriptor name=monitors element-class-ref=com.contego.arx.domain.Monitor

Re: ReportQueryByCriteria and Extents problem

2003-09-09 Thread Edson Carlos Ericksson Richter
I think UNION is not a problem, but using a SELECT in a FROM clause could be. In any way, I've changed my code to expect more than one value when issuing max() in areas I have extents. Thanks, Edson Richter - Original Message - From: Charles Anthony To: 'OJB Users List'

Re: How to use DUAL

2003-09-09 Thread Edson Carlos Ericksson Richter
in the end of the message so it can be verified to be not alterd. - Original Message - From: Edson Carlos Ericksson Richter To: 'OJB Users List' Sent: Monday, September 08, 2003 3:56 PM Subject: How to use DUAL Hi! I want to execute a query in OJB to obtain

Re: How to use DUAL

2003-09-10 Thread Edson Carlos Ericksson Richter
- From: Edson Carlos Ericksson Richter [mailto:[EMAIL PROTECTED] Sent: 09 September 2003 20:33 To: OJB Users List Subject: Re: How to use DUAL About secure messages, you are right. Excuses to mail list users. About using new Date(), this works fine if my app is j2ee based

Re: dynamci Proxy: ClassCastException with Interfaces

2003-09-12 Thread Edson Carlos Ericksson Richter
I've the two situation in my project. I have a documents table table has a fixed structure to all types of documents, and I have different tables for different objects, in another (a payment structure). All that works. I think you must specify that your interfaces extends others. The

Re: dynamci Proxy: ClassCastException with Interfaces

2003-09-15 Thread Edson Carlos Ericksson Richter
Could you try rc4 CVS HEAD? Just a guess... - Original Message - From: Joerg Lensing To: OJB Users List Sent: Saturday, September 13, 2003 4:51 AM Subject: Re: dynamci Proxy: ClassCastException with Interfaces Edson Carlos Ericksson Richter wrote: Ok, I've not asked

Re: Prevayler based PB implementation

2003-09-15 Thread Edson Carlos Ericksson Richter
Excuse me, but what is wrong with HSQL (or the derivative that is configured to work in-memory? Why can't we devote some time to improve HSQL, if it's not so performatic as we want? Edson - Original Message - From: Thomas Mahler To: OJB Users List Sent: Monday, September 15,

Re: Prevayler based PB implementation

2003-09-15 Thread Edson Carlos Ericksson Richter
is a completely different idea from a relational database. HSQL in-memory is great for a lot of things (persistence not being one of them). Prevayler basically acts as a heap that survives restarts. -Brian On Monday, September 15, 2003, at 03:58 PM, Edson Carlos Ericksson Richter wrote: Excuse me

Object-cache or cache-object?

2003-10-01 Thread Edson Carlos Ericksson Richter
I've downloaded CVS HEAD and now I'm trying to use object-cache per class. But appear there is a bug. In DTD I've found either object-cache and cache-object. What is the correct? Thanks, Edson Richter --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system

Re: Problem with keyword as column name

2003-10-03 Thread Edson Carlos Ericksson Richter
MS SQL accepts keywords in two ways: using [] and using . Have you tested field-descriptor column=\Key\ jdbc-type=VARCHAR name=key/ I think the only problem should be with XML sintax... Jakob, the escaped values should be sent directly to database (but then we are

Re: Proxies and toString

2003-10-13 Thread Edson Carlos Ericksson Richter
Forget: was my mistake (I have created an conversion class and apllyed to the PK: result is unpredictable, very unstable!!!). Best regards, Edson Richter - Original Message - From: Edson Carlos Ericksson Richter To: 'OJB Users List' Sent: Monday, October 13, 2003 11:17 AM Subject

Re: How to get SQL statements executed by OJB without using P6Spy

2003-10-14 Thread Edson Carlos Ericksson Richter
In MS SQL, use the SQL Profiler Tool (came with SQL Server itself). In SapDB, put dbalias=//yourservername/yourdatabasename?trace=c:/fileforlog.txt (for *nix machines, use a relative or absolute path, or just use the name of the file: he will be on you app path). I think the best is the SapDB

Proxies 1:1 optional doesn't work?

2003-10-24 Thread Edson Carlos Ericksson Richter
Hi! I'm using RC4 CVS Head (I get the source today, at 18:00 GMT-3). Look sample bellow. If I make OutrasInformacoes dynamic proxy, I get an error (method getXxx in object null) if Pessoa hasn't a db record in TB_OUTRAS_INFORMACOES. Also, where there is no OutrasInformacoes em Pessoa, when I use

1:1 navigable EmptyCache bug

2003-10-29 Thread Edson Carlos Ericksson Richter
Hi! If using EmptyCache, and you have 1:1 navigable referenced objects, OJB goes to infinite loop trying to load the references. The problem appear in the following piece of XML: class-descriptor class=com.acme.People proxy=dynamic schema=ABC table=PEOPLE

Re: 1:1 navigable EmptyCache bug

2003-10-30 Thread Edson Carlos Ericksson Richter
don't have any Inverse_foreignkey in your reference descriptor ? -Message d'origine- De : Edson Carlos Ericksson Richter [mailto:[EMAIL PROTECTED] Envoyé : mercredi 29 octobre 2003 23:37 À : 'OJB Users List' Objet : 1:1 navigable EmptyCache bug Hi! If using EmptyCache, and you have 1:1

Re: 1:1 navigable EmptyCache bug

2003-10-30 Thread Edson Carlos Ericksson Richter
cannot detect loops in your object relations, because it does not maintain object identity. I'm afraid you need to use some non-empty cache implementation or remove the back-reference that causes the loop. hth Gerhard On Wed, 29 Oct 2003 19:36:59 -0300, Edson Carlos Ericksson Richter

Re: More 1:0..1 optional mapping trouble

2003-10-31 Thread Edson Carlos Ericksson Richter
unnecessary .NEXTVAL... I think it's a bug, doesn't? Of couse, disabling just the reference portion of .XML file in main object, all came to expected. Edson Richter - Original Message - From: Edson Carlos Ericksson Richter To: 'OJB Users List' Sent: Friday, October 31, 2003 3:43 PM Subject

Re: More 1:0..1 optional mapping trouble

2003-10-31 Thread Edson Carlos Ericksson Richter
Users List Sent: Friday, October 31, 2003 3:10 PM Subject: Re: More 1:0..1 optional mapping trouble Hi Edson, could you write a test case/cases showing the problems? Maybe you could use ReferenceTest in test suite as starting point. regards, Armin Edson Carlos Ericksson Richter wrote: Actually

Using a non-existent collection inside a query

2004-01-05 Thread Edson Carlos Ericksson Richter
Hi! I'm facing a problem: I've a nice piece of sofware that load modules at runtime. Mostly, each module has their own .xml file with necessary configuration. So, there are no problem here. But imagine that I've a customer_repository.xml, that references a quite large table (let's say 100.000,

Fwd: Using a non-existent collection inside a query

2004-01-06 Thread Edson Carlos Ericksson Richter
(sorry, was a momentary lapse of reason when I clicked the send button). Hi! I'm facing a problem: I've a nice piece of sofware that load modules at runtime. Mostly, each module has their own .xml file with necessary configuration. So, there are no problem here. But imagine that I've a

Re: FW: NetBeans and OJB

2004-01-12 Thread Edson Carlos Ericksson Richter
could give me a clue for this problem. Thank you v. much Aamir -Original Message- From: Edson Carlos Ericksson Richter [mailto:[EMAIL PROTECTED] Sent: Friday, January 09, 2004 6:47 PM To: OJB Users List Subject: Re: FW: NetBeans and OJB Hi! I

Re: FW: NetBeans and OJB

2004-01-12 Thread Edson Carlos Ericksson Richter
is found but it give ExceptionInitilizer.. something exception. I want to know about netbeans-style referencing ? Aamir -Original Message- From: Edson Carlos Ericksson Richter [mailto:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 7:22 PM To: OJB Users List Subject

Re: TimeStamp Error Codes

2004-01-15 Thread Edson Carlos Ericksson Richter
Keep cool. When working with a community, is normal to get some messages of all kind. AFAIK, I've not worked with IBM DB2, but all databases has a TIMESTAMP like data type, and some has no capabilities for millisecond (as example, some databases like MS SQL Server store with 1000/3 milliseconds

Re: [DBMS] OJB with MaxDB

2004-01-16 Thread Edson Carlos Ericksson Richter
Yes, and no. The support is known as SapDB... Just use it as SapDB and all will be working fine. If you need LGPL drivers for SapDB you can download at http://sapforge.sourceforge.net (there is not binaries at all, download from CVS and build with ant). Anyone interested in translate are welcome

Re: ObjectCacheEmptyImpl.java

2004-01-29 Thread Edson Carlos Ericksson Richter
I have same problem. Actually, I'm using a per-object cache where the problem is detected. It's not a solution, but a workaround. Edson Richter --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 -

Re: ObjectCacheEmptyImpl.java

2004-01-29 Thread Edson Carlos Ericksson Richter
Well, it's boring get beginners programmers around me sayind hey, OJB doesn't work!!!, and all times I need to tell them that is just because they are making a bad modelling desing making two-way navigational references in all objects (kidding)... I think it's not an priority, because it can be

Update with customized WHERE

2004-01-29 Thread Edson Carlos Ericksson Richter
I want make following: 1) get an object from database 2) set a field in this object to the IP of station 3) update the object, but only IP still null (if another station reserves the record, it should not be updated) 4) get the object again, and check if the change proceeded Is there any

Update with customized WHERE

2004-01-30 Thread Edson Carlos Ericksson Richter
I want make following: 1) get an object from database 2) set a field in this object to the IP of station 3) update the object, but only IP still null (if another station reserves the record, it should not be updated) 4) get the object again, and check if the change proceeded Is there any way?

Re: Criteria with select with no where clause?

2004-02-04 Thread Edson Carlos Ericksson Richter
Easy: Issue a query where criteria using a null as criteria. Best regards, Edson Richter - Original Message - From: Robert S. Sfeir To: OJB Users List Sent: Wednesday, February 04, 2004 1:17 AM Subject: Criteria with select with no where clause? Can't seem to find a method which

Sucessfull Upgrade 1.0rc4 to 1.0rc5

2004-02-11 Thread Edson Carlos Ericksson Richter
Hi! I just want to share with the OJB team that I realized an sucessfull upgrade from 1.0rc4 (some time ago CVS Head) to 1.0rc5 in my mid sized Swing app, applyied my personal patches, and worked fine (no changes was needed). I want to thankyou all by always showing the right directions to

Re: Unique column

2004-02-13 Thread Edson Carlos Ericksson Richter
Short answer: it's all in documentation. Look there. Long answer: As far you have not give more details, just set it as primary key. This guarantee no duplicates, and no nulls. Don't forget to set this in database too (all good databases around the world support primary keys). Other way: in

Re: Re: Out of memory error (3)

2004-02-20 Thread Edson Carlos Ericksson Richter
I don't know if help, but analizing Vector I've seen that when need more space, it double allocated space. ArrayList, at other side, does a less agressive approach (but is slower), and ojb has support for ManageableArrayList for collections (set collection-class). Of course, you should use Proxy

Re: OJB + MSSQL

2004-02-27 Thread Edson Carlos Ericksson Richter
For all that need jTDS with support for scrollable cursors, see this announce: http://www.javalobby.org/thread.jspa?forumID=17threadID=11612 Best regards, Edson Richter - Original Message - From: Clute, Andrew To: OJB Users List Sent: Thursday, February 26, 2004 11:12 AM Subject: RE:

Re: delete relation in indirection-table

2004-03-03 Thread Edson Carlos Ericksson Richter
I use exactly same config and works as expected, except I use proxies. There is any chance you be issueing a delete(Object o2), that is deleting the n related object? I'm using either rc4 and rc5 (latest from CVS). What version are you using? Are you using proxies? Edson Richter -

Re: delete relation in indirection-table

2004-03-03 Thread Edson Carlos Ericksson Richter
Ops, my mistake. I use RemovalAware... in 1:N relations. As stated by Olivier, you must NOT use RemovalAwareCollection - use ManageableCollection. Best regards, Edson Richter - Original Message - From: Edson Carlos Ericksson Richter To: 'OJB Users List' Sent: Wednesday, March

Dinamic collection creation

2004-03-08 Thread Edson Carlos Ericksson Richter
Hi! I'm using a bit modified OJB to get dynamic collections working. The problem is that I have a collection dynamically put that doesn't exists in the real bean. When I ask for store the main object, OJB tries to atore the collection as well (what is expected if the field in main bean really

OJB rc5 don't call toString in the object when using Proxies

2004-03-08 Thread Edson Carlos Ericksson Richter
Hi! I'm asking you to remove the feature that make OJB doesn't materialize a object when calling toString (IndirectionHandler, method invoke): // handle toString differently for non-materialized proxies // to avoid materialization due to logging. if

Re: OJB rc5 don't call toString in the object when using Proxies

2004-03-08 Thread Edson Carlos Ericksson Richter
- From: Charles Anthony To: 'OJB Users List' Sent: Monday, March 08, 2004 11:01 AM Subject: RE: OJB rc5 don't call toString in the object when using Proxies Hi Edson, From: Edson Carlos Ericksson Richter [mailto:[EMAIL PROTECTED] Sent: 08 March 2004 13:56 To: 'OJB Users List' Subject: OJB rc5

Re: Dinamic collection creation

2004-03-08 Thread Edson Carlos Ericksson Richter
: Leandro Rodrigo Saad Cruz To: OJB Users List Sent: Monday, March 08, 2004 11:00 AM Subject: Re: Dinamic collection creation Could you use javaif(!cds.getCascadeStore()) continue;/java to solve your problem ? On Mon, 2004-03-08 at 10:44, Edson Carlos Ericksson Richter wrote: Hi

Re: OJB rc5 don't call toString in the object when using Proxies

2004-03-08 Thread Edson Carlos Ericksson Richter
Thanks a lot, I think this will fix behaviour. Edson Richter - Original Message - From: Thomas Dudziak To: OJB Users List Sent: Monday, March 08, 2004 11:46 AM Subject: Re: OJB rc5 don't call toString in the object when using Proxies On Mon, 8 Mar 2004, Edson Carlos Ericksson Richter

Re: Dinamic collection creation

2004-03-09 Thread Edson Carlos Ericksson Richter
creation Could you send me the patches ? On Mon, 2004-03-08 at 11:39, Edson Carlos Ericksson Richter wrote: Yes, I think so (I've patched my local OJB cvs sources to do this already), but I did like to see this merged into main sources (if is possible). This is the reason I've asked

Re: 1 to 1 mapping

2004-03-18 Thread Edson Carlos Ericksson Richter
Use a reference-descriptor to make 1:1 mappings. If you are using 1:N mappings, use a collection-descriptor in the 1 side, and a reference-descriptor in the N side. Best regards, Edson Richter - Original Message - From: McCaffrey, John G. To: 'OJB Users List' Sent: Thursday,

Problem in PersistenceBrokerImpl

2004-03-23 Thread Edson Carlos Ericksson Richter
Hi! I've found a little bug in PersistenceBrokerImpl (latest CVS - downloaded 10 min ago), that can cause a NPE when storing: private Iterator getCollectionIterator(CollectionDescriptor cds, Object collectionOrArray) { Iterator colIterator; if (collectionOrArray instanceof

Re: Newbie Proxy problem

2004-03-23 Thread Edson Carlos Ericksson Richter
for your objects. Best regards, Edson Richter - Original Message - From: Mauricio Montblanch To: OJB Users List Sent: Tuesday, March 23, 2004 3:16 PM Subject: Re: Newbie Proxy problem Nop, it did not work, have you any example Edson Carlos Ericksson Richter

Re: Problem in PersistenceBrokerImpl

2004-03-23 Thread Edson Carlos Ericksson Richter
- From: Edson Carlos Ericksson Richter To: 'OJB Users List' Sent: Tuesday, March 23, 2004 3:36 PM Subject: Problem in PersistenceBrokerImpl Hi! I've found a little bug in PersistenceBrokerImpl (latest CVS - downloaded 10 min ago), that can cause a NPE when storing: private Iterator

Re: Newbie Proxy problem

2004-03-23 Thread Edson Carlos Ericksson Richter
, it did not work, have you any example Edson Carlos Ericksson Richter wrote: As far as you have explained, you should not get ClassCastException. First let's go analize your code: 1) Product implements InterfaceProduct. 2) ProductGroup have a products list. Ok, have you set

Re: Problem in PersistenceBrokerImpl

2004-03-24 Thread Edson Carlos Ericksson Richter
I had not so much time to investigate: I fixed because I need to upgrade to 1.0.0 ASAP (due to other fixes). I'll double check the stack trace because the problems is occurring when querying, not storing neither deleting. Best regards, Edson Richter

Re: Problem in PersistenceBrokerImpl

2004-03-24 Thread Edson Carlos Ericksson Richter
To: OJB Users List Sent: Wednesday, March 24, 2004 9:36 AM Subject: Re: Problem in PersistenceBrokerImpl Edson Carlos Ericksson Richter wrote: I had not so much time to investigate: I fixed because I need to upgrade to 1.0.0 ASAP (due to other fixes). ok, no problem. Could you send me the stack

MtoNCollectionPrefetcher.buildPrefetchCriteriaMultipleKeys(MtoNCollectionPrefetcher.java:338)

2004-03-24 Thread Edson Carlos Ericksson Richter
This bug is driving me crazy... Someone could point me what changed from rc5 to 1.0 in this method (so I can at least fix locally)? The problem is a M:N mapping using composite pk pointing the M bean, and 1 field pk pointing to the N bean. The stack trace is:

Re: MtoNCollectionPrefetcher.buildPrefetchCriteriaMultipleKeys(MtoNCollectionPrefetcher.java:338)

2004-03-24 Thread Edson Carlos Ericksson Richter
Carlos Ericksson Richter To: 'OJB Users List' Sent: Wednesday, March 24, 2004 2:46 PM Subject: MtoNCollectionPrefetcher.buildPrefetchCriteriaMultipleKeys(MtoNCollectionPre fetcher.java:338) This bug is driving me crazy... Someone could point me what changed from rc5 to 1.0 in this method (so I

Re: MtoNCollectionPrefetcher.buildPrefetchCriteriaMultipleKeys(MtoNCollectionPrefetcher.java:338)

2004-03-24 Thread Edson Carlos Ericksson Richter
stuff so I can't send much time for that - put this on my imaginary todo-list for 1.0 ;-) regards, Armin Edson Carlos Ericksson Richter wrote: This bug is driving me crazy... Someone could point me what changed from rc5 to 1.0 in this method (so I can at least

1.0 - one more bug

2004-03-24 Thread Edson Carlos Ericksson Richter
The afterstore method is being called. This is very embaracing since we need this for the RemovalAwareCollection (and RemovalAwareList). This is a known bug, is there a workaround? Thanks in advantage, Edson Richter --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system

Re: 1.0 - one more bug

2004-03-24 Thread Edson Carlos Ericksson Richter
Ops, the correct is The afterstore method is NOT being called. Tkx, Edson Richter - Original Message - From: Edson Carlos Ericksson Richter [EMAIL PROTECTED] To: 'OJB Users List' [EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 4:25 PM Subject: 1.0 - one more bug The afterstore

  1   2   >