RE: RE : UPGRADE pb with proxi and getCollectionByQuery

2003-10-08 Thread Charles Anthony
Hi, Some time ago, I ran a comparison of MSSql drivers. http://article.gmane.org/gmane.comp.jakarta.ojb.user/7367 http://article.gmane.org/gmane.comp.jakarta.ojb.user/7369 (Note The first link contained errors which I updated in the second reference) As I said in the original post, the benchmar

Antwort: [Fwd: SQLGenerator]

2003-10-08 Thread Gerhard . Grosse
Giora, the elements and must specifiy the foreign key columns in the indirection table, not the primary keys of the linked tables. These fk columns necessarily have different names as the are in the same table. HTH Gerhard Original Message Subject: SQLGenerator Date: Wed

RE: Collections/ODMG

2003-10-08 Thread Gunnar Hilling
On Thu, 09 Oct 2003 15:09:11 +1300, Shane Mingins wrote: Thanks for your fast response ... In the meantime I found the bug in my program. As You suggested the mapping was errorneous: I pointed the "inverse-foreignkey" to the primary key of Certificate instead of the correct foreignkey. It would be

RE : UPGRADE pb with proxi and getCollectionByQuery

2003-10-08 Thread Emmanuel Dupont
Hi Armin ! In fact it seems that it is a driver error. We are using MSSQL server with jtds driver. I retrieve from db a proxy object; I set its attributes and lock with UPGRADE (even WRITE) mode in order to make an update database. I commit but nothing happens. No update is done!!! I'm obliged t

perhaps already ask

2003-10-08 Thread stephane . labbe-ext
Hi, Is there any possibility, without using QueryBySQL , to create a query join over two tables which not have relationship-definition ? Thanks a lot. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

[Fwd: SQLGenerator]

2003-10-08 Thread Thomas Mahler
Original Message Subject: SQLGenerator Date: Wed, 8 Oct 2003 15:26:40 -0400 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Hi Thomas. My name is Giora. I am using OJB (Love it). In my repository I have the following mapping for a collection using m:n without decomposition:

RE: Collections/ODMG

2003-10-08 Thread Shane Mingins
Hi I am no expert and it has been a few months since I used the ODMG API. Try this --- Customer customer = new Customer("no", "one", "here", 0, "", 2, new Date()); for (int i = 0; i < 3; i++) { customer.addSchein(new Certificate("%PS1\n", customer)); } Transaction tx = odmg.newTransaction(

Collections/ODMG

2003-10-08 Thread Gunnar Hilling
Hello! Why does the following Code: Customer customer=new Customer("no", "one", "here",0, "", 2, new Date()); for(int i=0; i<3; i++){ Transaction tx = odmg.newTransaction(); tx.begin(); tx.lock(customer, Transaction.WRITE); customer.addSchein(new certificate("%PS1\n", cust

Re: Inheritance problem

2003-10-08 Thread balza
Hello, * the class-descriptors: public class Account { public Organization organization; public AccountAddress accountAddress; private int account_id; private String login; private String password; private

Re: OQL Question

2003-10-08 Thread Brian McCallister
Sorry, would be more like... "select profiles from Profile where group = $1" where group is matched on oid. On Wednesday, October 8, 2003, at 04:46 PM, Brian McCallister wrote: "select profiles from Profile where profile.group = $1"

OQL Question

2003-10-08 Thread Brian McCallister
Is there a way to construct an OQL query (I am using the OTM, but it should be the same conceptually as the ODMG api) to query against the identity of a child persistent object. For example: class Profile { private Group group; } class Group { } primarykey="true" autoincre

Re: OJB RC4 does not select all objects?

2003-10-08 Thread Guido Beutler
Hi Armin, took some time but I was able to build the testcase. snip :-) Why not all objects are selected and why without throwing any exception? Is there a workaround (instead of making a lot of primary key selects)? as I said in my previous post "this can be" a side-effect of eager-release,

Re: Query returns only identical instances

2003-10-08 Thread Cesar
This problem happened with me I had forgotten to a field as primary-key [ ]´s - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 07, 2003 4:19 PM Subject: Query returns only identical instances Hi everyone, I'm absolutely puzzled by the follo

Re: XDoclet support for "super"

2003-10-08 Thread Patrick Sager
Thanx! I found the documentation. It's much easier having a docu ;-) -- Pat "Thomas Dudziak" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Check the contrib directory (where you found the xdoclet module), also I > would suggest that you use the CVS version (at least the xdoclet

Re: Query Criterias and relations PROBLEM!!

2003-10-08 Thread Jakob Braeuchi
hi thomas, this is pretty much normal behaviour ! the first query looks for all persons having a phonenumber like "052*" and returns these persons. when you do person.getPhones() all phones belonging to this ONE person are returned, no matter what the number is (at least one is like "052*"). h

Re: ConcurrentModificationException

2003-10-08 Thread Armin Waibel
Hi Michael, On Wed, 8 Oct 2003 17:31:15 +0100, Michael Watson <[EMAIL PROTECTED]> wrote: Hi all, I'm finding I quite reguarly get this exception when I'm attempting to call PersistenceBroker.store(Object) from multiple threads simultaneously. Do several threads share the same PB instance? If

Re: XDoclet support for "super"

2003-10-08 Thread Thomas Dudziak
Check the contrib directory (where you found the xdoclet module), also I would suggest that you use the CVS version (at least the xdoclet module from it), you can view and download from the CVS version on the OJB website. Tom

ConcurrentModificationException

2003-10-08 Thread Michael Watson
Hi all, I'm finding I quite reguarly get this exception when I'm attempting to call PersistenceBroker.store(Object) from multiple threads simultaneously. java.util.ConcurrentModificationException java.util.AbstractList$Itr.checkForComodification(AbstractList.j ava:444) java.util.AbstractList

Query Criterias and relations PROBLEM!!

2003-10-08 Thread Thomas Herbst
hi, i have a 1:n relationship between Person an Phones. if i make the following query to persons, i get all persons with a phonenumber like "052*" crit = new Criteria(); crit.addLike("phones.number", "052*"); query = new QueryByCriteria(Person.class, crit); thats ok! but when if i make a p

Re: XDoclet support for "super"

2003-10-08 Thread Patrick Sager
Hi Tom Where can I find the documentation to the module? I only have the xtags.xml file, which doesn't mention any anonymous tags. Best regards -- Pat "Thomas Dudziak" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Basically, you have to add an anonymous reference (to the class j

Re: error messages and documentation, was: RE: Strange null pointer e xceptions

2003-10-08 Thread Jan Berkel
Oliver, [EMAIL PROTECTED] wrote: since the NPE is due to missing fields in the metadata, I assume that a workaround is to add field-descriptors. I added field-descriptors to the class descriptor of the Interface (Template) and it worked fine, thanks. Actually you need field-descriptors i

Re: Inheritance problem

2003-10-08 Thread Jakob Braeuchi
hi, could you please post the sql used to search and the class-descriptors ? jakob balza wrote: Hello, I've - table tA and tB with an inheritance relationship - class B extending A - class A reflect tA - class B reflect tB insert in class B generate an entry in table tA and in table tB delete o

Choose columns to update

2003-10-08 Thread Norbert . Woegerbauer
Hi all, we use OJB1.0 RC4 against a DB2. We want to tell OJB which columns should be included in the update statement instead of updating all of them. The columns to update have the same name and definition in all the tables. Detailled information: We have tables with many columns. Some columns h

Does Anybody Use OJB(RC3) With Bea 8.1 ???

2003-10-08 Thread RBaron-Riege
Hi again, this is more a repost. Does anybody use OJB with Bea Weblogic 8.1? Our code, which works fine with Bea 6.X could not even start with Bea 8.1 Any suggestions? Thanks in advance! Cheers, Ralf Our logfile so far: [BOOT] WARN: Value "org.apache.ojb.broker.metadata.fieldaccess.Persis

Re: XDoclet support for "super"

2003-10-08 Thread Thomas Dudziak
Basically, you have to add an anonymous reference (to the class javadoc tag). Check the examples in the docs for the xdoclet module, there is one with 'super'. Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

XDoclet support for "super"

2003-10-08 Thread Patrick Sager
I'd like to use "mapping classes on multiple joined tables" for inheritance. Therefore my question: How can I have XDoclet generate the following: ... Thanx for any hints -- Pat - To unsubscribe, e-mail: [EMAIL PROTECTED]

error messages and documentation, was: RE: Strange null pointer e xceptions

2003-10-08 Thread oliver . matz
Hej Jan, > -Original Message- > From: Jan Berkel [mailto:[EMAIL PROTECTED] > > since the NPE is due to missing fields in the metadata, > > I assume that a workaround is to add field-descriptors. > > I added field-descriptors to the class descriptor of the Interface > (Template) and it wo

addIn() differences between Oracle and Sybase

2003-10-08 Thread Danilo Tommasina
Hi all, I noticed a problem with the IN clause... As shown in the 'Query' documentation if the SqlInLimit property is exceeded a Criteria will be split in a OR concatenated list of INs. That's really cool, however this works in Oracle (however with a limitiation of 1000 ORs :) ), but in the (@

RE: ConnectionfactoryPooledImpl in Weblogic, was rollback proble m

2003-10-08 Thread Bonnie MacKellar
OK, I see that my questions did get answered. Thanks. 1. On the documentation - yes, reading that section is still unclear. It still seems to say to me that one must set useAutoCommit=0 when using data sources. Also, a small quibble - but a section heading for each attribute would be REALLY useful

RE: rollback problem

2003-10-08 Thread Bonnie MacKellar
Yes, it seems to be. We have had no problems with rollback since. But I am concerned about using ConnectionFactoryPooledImpl with Weblogic and a data source. The comments in ojb.properties seem to imply that I should only be using ConnectionFactoryManagedImpl. And thinking about it, I am concerned

Mapping classes on the same table

2003-10-08 Thread Philippe Hacquin
Hi all, I would like to report some problems I had to map two sister classes on the same table, and make sure I am not doing anything wrong. I am using the ODMG API, OJB RC4 with j2sdk1.4.1_01 on windows, and MySQL 4. I followed the "Advanced O/R" tutorial, chapter "Mapping all classes on the

Re: Strange null pointer exceptions

2003-10-08 Thread Jan Berkel
Hi Olli, [EMAIL PROTECTED] wrote: since the NPE is due to missing fields in the metadata, I assume that a workaround is to add field-descriptors. I added field-descriptors to the class descriptor of the Interface (Template) and it worked fine, thanks. Actually you need field-descriptors in your

RE: Strange null pointer exceptions

2003-10-08 Thread oliver . matz
Hello Jan, since the NPE is due to missing fields in the metadata, I assume that a workaround is to add field-descriptors. see below. > -Original Message- > From: Jan Berkel [mailto:[EMAIL PROTECTED] > class="cabane.templates.Template" > table="TEMPLATES" > > Please try to ad

Re: OJB with WebLogic 8.1

2003-10-08 Thread Armin Waibel
Hi Ralf, On Tue, 7 Oct 2003 09:14:37 +0200, <[EMAIL PROTECTED]> wrote: Hi, we have experienced some problems with OJB (rc3) and BEA 8.1 AppServer. assume you are using rc4? In the db-ojb main directory you can find a release-notes.txt file documents most important changes. Don't forget to replac