RE: addLike and integer fields

2003-02-27 Thread O'Reilly John
A workaround for the problem mentioned below is to use addSql: crit.addSql(upper( INTERNAL_PRODUCT_ID) like '% + new Integer( theProductModel.getInternalProductID() ).toString() + %' ); Note that in this case you have to use the actual db column name. Is this the only solution? Rgds, John

How to handle java.util.Map

2003-02-27 Thread Rice Yeh
Hi, In OJB document, I can find information on how to handle collection mapping. However, I can not find information on how to handle java.util.Map. Is it supported? Regards, Rice __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips,

Re: Bug in PersistenceBrokerImpl.java (old bug still there)

2003-02-27 Thread Theo Niemeijer
Hi all. I noticed that a problem described in october 2002 is still present in the 0.9.9 version i just downloaded. The reported problem is in org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.java, lines 738 to 757 (the changes marked by LEANDRO and MBAIRD). These two if-statements are in

Tutorial2 works !

2003-02-27 Thread Emmanuel Dupont
I apologize, i made a mistake, the tutorial2 is oK !!! Have a good day. -Message d'origine- De : Emmanuel Dupont [mailto:[EMAIL PROTECTED] Envoyé : jeudi 27 février 2003 15:13 À : 'OJB Users List' Objet : Tutorial2 still doesn't work ? All, Sorry again,

Re: How to handle java.util.Map

2003-02-27 Thread Christopher C Worley
Rice, I have not. It may be common, I was just wanting to see an example. It may be a helpfull option one day. From my experience i cannot visualize how an object would relate to another object with a map. I am not saying your design is wrong. Maybe I'll learn somthing new ;) -chris

RE: How to handle java.util.Map

2003-02-27 Thread Mahler Thomas
Hi, -Original Message- From: Rice Yeh [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 2:29 PM To: [EMAIL PROTECTED] Subject: How to handle java.util.Map Hi, In OJB document, I can find information on how to handle collection mapping. However, I can not find

Re: How to handle java.util.Map

2003-02-27 Thread Rice Yeh
Hi, I usually use Map when a object in collection is needed to be retrieved by key and the collection is too big to scan the collection to get the wanted object specified by key. Regards, Rice --- Christopher C Worley [EMAIL PROTECTED] wrote: Rice, I have not. It may be common, I was

RE: HELP: MsAccess ODBC Controller Error: Optional function not implemented

2003-02-27 Thread Mahler Thomas
Hi Jose, There seems to be some config problem with your repository: From the stacktrace I learn that PlatformMySQLImpl produces a problem. You should setup repository.xml to use the MsAccess platform and not the MySql platform! cheers, Thomas -Original Message- From: José Manuel

RE: PersistenceBroker and non-decomposed m:n mappings

2003-02-27 Thread Ebersole, Steven
Sweet, that's perfect. The documentation was just missleading then when it states that the PB does not manage related objects. |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED] |Sent: Thursday, February 27, 2003 2:15 AM |To: [EMAIL PROTECTED]

RE: HELP: MsAccess ODBC Controller Error: Optional function not implemented

2003-02-27 Thread José Manuel Vázquez
Excuse me Thomas. The listing of the log was of an old one where I tried to cheat OJB putting MySQL instead of MsAccess to see what would happen. Here is the one using MsAccess. Same problem. 15:55:50,418 - DEBUG org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl -

Re: Newbie question - Unable to open database

2003-02-27 Thread Armin Waibel
- Original Message - From: Christopher C Worley [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Thursday, February 27, 2003 4:10 PM Subject: Re: Newbie question - Unable to open database Joshua, Add jcd-alias attribute to jdbc-connection, set it equal to default. Then

RE: Does reference id intrusion to the domain model necessary?

2003-02-27 Thread O'Reilly John
Hi, It seems that for jdo implementatin without code enhancement , such intrusion is not avoidable. We have recently moved from using Castor to using OJB. In Castor you don't have to specifically have attributes in your model classes for the foreign keys (and that is without any intrusion).

RE: long transactions

2003-02-27 Thread Mahler Thomas
Hi all, I have just started converting our system to use OJB instead of Castor, so I cannot speak to the PB v. ODMG approach. However, our perferred approach has been to implement long transactions using what are named DataTransferObjects. Especially if you are using a session bean

RE: long transactions

2003-02-27 Thread Ebersole, Steven
Actually the problem we were trying to get around wasn't so much the long transactions (as Castor does have support for that), but the performance hit of serialization and de-serialization and network communication of large/deep object graphs inherent in EJB environments. The platform-neutral

reverse-db

2003-02-27 Thread Ebersole, Steven
I have a pretty large database which a need to map, and was hoping to use the reverse-db tool to at least get an initial working copy. So I launch the tool, and connect to my database fine. However, as soon as I hit read (which I believe is the next step), the generator just hangs/locks. Not

RE: reverse-db

2003-02-27 Thread Mahler Thomas
Reading the metadata of a DB can take a *very* long time. 15 minutes for Oracle is not long... cheers, Thomas -Original Message- From: Ebersole, Steven [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 5:17 PM To: OJB Users List (E-mail) Subject: reverse-db I have a

RE : reverse-db

2003-02-27 Thread Emmanuel Dupont
I have the same trouble but my database is not large. In fact I didn’t' understood what I have to put in the fields : Enter regular expression to match catalogs Enter regular expression to match schemas What did you put ? -Message d'origine- De : Ebersole, Steven [mailto:[EMAIL

RE: RE : reverse-db

2003-02-27 Thread Ebersole, Steven
I never even got to that point. The catalogs and schema entries would be for RDBMSs supporting those concepts. What database are you using? |-Original Message- |From: Emmanuel Dupont |[mailto:[EMAIL PROTECTED] |Sent: Thursday, February 27, 2003 10:37 AM |To: 'OJB

Re: RE : RE : reverse-db

2003-02-27 Thread Robert S. Sfeir
If I remember right, the first popup put the name of your db, the second leave blank. If that doesn't work flip the info, blank first db name second. On Thursday, Feb 27, 2003, at 11:41 US/Eastern, Emmanuel Dupont wrote: Mysql with mysql-connector-java-3.0.6-stable jdbc driver. I don't

Re: long transactions

2003-02-27 Thread Phil Warrick
Hi again (again), Hi again, snip With the PB api you can ignore swizzling as you can use optimistic locking with timespamp or version labels to detect write conflicts. Can you expand on the PB approach a little? How is it that no merge is necessary with optimistic locking? With OL you

RE: RE : RE : reverse-db

2003-02-27 Thread Ebersole, Steven
Not at all familiar with mysql. You could try entering mysql's wilcard character (typically '%'). |-Original Message- |From: Emmanuel Dupont |[mailto:[EMAIL PROTECTED] |Sent: Thursday, February 27, 2003 10:42 AM |To: 'OJB Users List' |Subject: RE : RE :

Where to send a patch to?

2003-02-27 Thread Janssen, Roger
Hi, i tried to send a patch to this list so someone can integrate it into the cvs-head. The list does not accept messages larger then 10K, the files included in the patch are larger! Can send the patch to someone (an OJB developer) who can have a look at it? please. someone... Roger

RE : RE : RE : reverse-db

2003-02-27 Thread Emmanuel Dupont
Sorry, It still doesn't work. Is there any Mysql incompatibilities ? Reverse-db2 shows meall my tables but it can't generate xml mapping yet.. Any idea ? -Message d'origine- De : Robert S. Sfeir [mailto:[EMAIL PROTECTED] Envoyé : jeudi 27 février 2003 17:37 À : OJB Users List

which setting for build to preserve debugging-infos in class-files?(lines/local variables ...)

2003-02-27 Thread Joerg Lensing
hi, i'm using eclispe 2.1 and want to use the integrated debugger. But the java-files must be compiled with special options within the build. Cause I'm new to ant - what do i have to change? - To unsubscribe, e-mail: [EMAIL

Re: long transactions

2003-02-27 Thread Thomas Mahler
Hi again snip OL stuff Right, write conflicts are detected with OL. But will there be an efficient merge of the updated graph? No. Say only one of the graph's n objects was modified. Is OJB's use of its cache going to compare the before/after status of each graph object and perform a db

Re: long transactions

2003-02-27 Thread Thomas Phan
With OL you have a version column for each row. Say you load an object with version=15. you send it to the client. The client works on it and posts the modified object back to the server. the server then update the database. With OL it checks if the version field in the instance still

RE: long transactions

2003-02-27 Thread Ebersole, Steven
Just to make certain that I understand this correctly (as I asked this very question in a seperate thread and got the opposite answer): If I map a m:n relationship letting OJB manage the association table (documentation refers to this as non-decomposed m:n), can I use the PersistenceBroker API

Re: Bug in PersistenceBrokerImpl.java (old bug still there)

2003-02-27 Thread Jakob Braeuchi
hi theo, i switched those two ifs. it's in the repository now. thank you. jakob Theo Niemeijer wrote: Hi all. I noticed that a problem described in october 2002 is still present in the 0.9.9 version i just downloaded. The reported problem is in

RE: reverse-db

2003-02-27 Thread Ebersole, Steven
Haha |-Original Message- |From: Dennis Ryan [mailto:[EMAIL PROTECTED] |Sent: Thursday, February 27, 2003 1:08 PM |To: OJB Users List |Subject: Re: reverse-db | | | |I let it run overnight before I decided it was quicker and |easier to do it |by

How does one CRUD a M:N relationship. Any solid examples of CRUD! CRUD! CRUD! CRUD!

2003-02-27 Thread Jeffrey Gilbert
Hi, I've setup a non-decomposed M:N relationship in my datastore so now how do I CRUD (create, read, update and delete) records that participate in this relationship? An example provided by the OJB website for adding records to datastore does exist but doesn't reflect any type of advanced

Re: Ant build.xml using XDoclet JDO module to automatically enhance class files

2003-02-27 Thread David Jencks
Is there a question here? The build file looks reasonable to me. The sun reference enhancer is kind of nasty about only enhancing files in the correct order and not telling you clearly if there is a problem, and is exceedingly slow if you enhance them one by one. The tjdo project on sourceforge

Re: RE : reverse-db

2003-02-27 Thread Jeremy
- Original Message - From: Emmanuel Dupont [EMAIL PROTECTED] To: 'OJB Users List' [EMAIL PROTECTED] Sent: Thursday, February 27, 2003 8:41 AM Subject: RE : RE : reverse-db Mysql with mysql-connector-java-3.0.6-stable jdbc driver. I don't manage to see my database tables in the

OJB Clobbers Default Values with Null

2003-02-27 Thread C F
Hello, Way back in OJB 0.9.7 I brought this issue up and I don't think I got much response. I took an OJB hiatus for a while and now I'm back and have run up against this problem again. The problem is that when I insert a record, OJB tries to insert null values into fields that I did not

How many broker instances?

2003-02-27 Thread David Warnock
This may seem like a silly question. But anyway In a servlet style environment (where multiple threads operate on an object at a time). How many broker objects should I use? One per thread? One per session? One per request? One to share? What are the implications of the various options. So far

Re: How many broker instances?

2003-02-27 Thread Armin Waibel
Hi David, - Original Message - From: David Warnock [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 28, 2003 12:03 AM Subject: How many broker instances? This may seem like a silly question. But anyway In a servlet style environment (where multiple threads operate on an

Re: long transactions

2003-02-27 Thread Thomas Phan
The example I gave was a Customer and a Product. The Customer has a collection of Products, the relation of which is maintained in say a CUSTOMER_PRODUCT table. Because it is non-decomposed, I do not create a CustomerProduct class. Now in client code, I do: Customer customer = // lookup

RE: Limiting a number of rows returned

2003-02-27 Thread Max Vesely
Thanks, Scott. Would database implementation be the right place for this code? If yes, is anyone working on it? If not, Can someone like me contribute to OJB framework? Thank, you. Max. -Original Message- From: Scott Howlett [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26,

Re: Browsing of mailing list archives broken

2003-02-27 Thread V.B. Skrypnyk
If you want to access archives now, edit db.apache.org to jakarta.apache.org manually in the mailing list address in the url. It was overlooked when the site moved. --Bill. - Original Message - From: ow [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:32 PM

Ant build.xml using XDoclet JDO module to automatically enhance class files

2003-02-27 Thread Sebastian Thomschke
Since I didn't find any other solutions on the web, I worte an ant build.xml that generates jdo metadata files based on @jdo xdoclet tags in java files having the @jdo.persistence-capable tag and afterwards uses these metadata files to automatically enhances the class files using the sun JDO