Re: [castor-dev] Websphere 4.0.2

2005-03-29 Thread Ralf Joachim
Hi Bruce, we took that reference into account but are still not sure if 4.0.2 differs from 4.0.7. Ralf Bruce Snyder schrieb: On Tue, 29 Mar 2005 13:22:42 +0200, Ralf Joachim <[EMAIL PROTECTED]> wrote: Is there anybody who can tell us the name of Websphere Transaction Manager Fact

[castor-dev] Polymorphism

2005-03-29 Thread Ralf Joachim
Hi everybody, we have managed to create a working patch adding support for polymorphism at CastorJDO. Until this point, most of the work had been done by Werner but now we also need your opinions and test results as we want to get that feature as stable as possible until the next major release.

[castor-dev] Websphere 4.0.2

2005-03-29 Thread Ralf Joachim
Is there anybody who can tell us the name of Websphere Transaction Manager Factory at Version 4.0.2? We are not shure if it's: "com.ibm.ejcs.jts.jta.JTSXA" or "com.ibm.ejs.jts.jta.JTSXA" For Version 4.0.7 we know "com.ibm.ejs.jts.jta.JTSXA" is right and we also know that versions 5 and above are

Re: [castor-dev] References by class type

2005-03-21 Thread Ralf Joachim
- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev -- Syscon Ingenieurbüro für Meß- und Datentechnik GmbH Ralf Joachim Raiffeisenstraße 11 D-72127 Kusterdingen Germany Tel. +49 7071 3

Re: [castor-dev] Pb with loadConfiguration while using simultaneously two databases

2005-03-03 Thread Ralf Joachim
ECTED] with a subject of: unsubscribe castor-dev -- Syscon Ingenieurbüro für Meß- und Datentechnik GmbH Ralf Joachim Raiffeisenstraße 11 D-72127 Kusterdingen Germany Tel. +49 7071 3690 52 Mobil: +49 173 9630135 Fax+49 7071 3690 98 Email:

Re: [castor-dev] Re: switch from CVS to Subversion

2005-01-03 Thread Ralf Joachim
Hello Martin, have you see this thread from Nov. 2004? http://www.mail-archive.com/castor-dev@exolab.org/msg18911.html As I don't have experience with subversion I can not comment on this. Regards Ralf Martin Fuchs schrieb: Hello Wade, My experience with Subversion is that the clients suck. I hav

Re: [castor-dev] database.xml problem with castor 0.9.5.6

2004-11-15 Thread Ralf Joachim
If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev -- Syscon Ingenieurbüro für Meß

Re: [castor-dev] [jdo] Reading, in the same transaction, a data just created (reading via oql query)

2004-11-11 Thread Ralf Joachim
-- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev --- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev -- Syscon

Re: [castor-dev] [jdo] Reading, in the same transaction, a data just created (reading via oql query)

2004-11-10 Thread Ralf Joachim
transaction, I need to read again the object A to create another object B . To do this, as I have no longer the id, I'm usinq an oql query to retrieve A... But it is not found... What can I do (castor configuration or special command) to be able to read it by an oql

Re: [castor-dev] Re: Verify SQL syntax of LIMIT clause on Oracle version prior to 8.1.6

2004-10-04 Thread Ralf Joachim
Hi Martin, that's strange on 9.0.1 the ORDER BY on the inner SELECT works like it should. Could you add a comment to bug 1199 about this behavier. Regards Ralf - Original Message - From: "Martin Fuchs" <[EMAIL PROTECTED]> To: "castor-dev" <[EMAIL PROTECTED]> Sent: Saturday, October 02, 2

[castor-dev] Verify SQL syntax of LIMIT clause on Oracle version prior to 8.1.6

2004-10-01 Thread Ralf Joachim
Hi castors, do anyone have an Oracle server with version prior to 8.1.6 (e.g. 8.0.x or 7.x) runing and can try if the following query can be executed. SELECT * FROM ( SELECT t1.*, rownum rnk FROM ( SELECT * FROM table ) t1 ) WHERE rnk BETWEEN 5 AND 7 You can use any table avilable on

[castor-dev] test castor.oracle fails on current CVS (2004-10-01)

2004-10-01 Thread Ralf Joachim
Hi castors, I wanted to verify if bugs 1209, 1737 and 1751 can be closed but testcases failed according to some other changes on the current CVS version (2004-10-01 17:30) of castor. I had run testcases on CVS version of 2004-09-20 without the following problem: Test: TC01 Duplicate key detecti

Re: [castor-dev] Unable to find FieldDescriptor for 'driver' in ClassDescriptor of

2004-09-30 Thread Ralf Joachim
Hi Philip, if you try to use CVS version of castor you have to change your database.xml as follows: "http://castor.exolab.org/jdo-conf.dtd";> Regards Ralf - Original Message --

Re: [castor-dev] New datasource interface (was: Working with Castor's internal JDBC connection)

2004-09-16 Thread Ralf Joachim
hievable. Werner On Wed, 15 Sep 2004 12:07:54 +0200, Ralf Joachim wrote: Hallo Bruce, thanks for your answer and it is good to know that castor supports connections to more than 1 database. With the previous mail I also wanted to present an idea for an improvement. I'll give it another try. L

Re: [castor-dev] New datasource interface (was: Working with Castor's internal JDBC connection)

2004-09-15 Thread Ralf Joachim
-- Original Message - From: "Bruce Snyder" <[EMAIL PROTECTED]> To: "Castor" <[EMAIL PROTECTED]> Sent: Wednesday, September 15, 2004 10:15 AM Subject: Re: [castor-dev] New datasource interface (was: Working with Castor's internal JDBC connection) Ralf Joachim wro

[castor-dev] New datasource interface (was: Working with Castor's internal JDBC connection)

2004-09-15 Thread Ralf Joachim
Hello Bruce, I thougth it may be better to start a new tread for discussion on new Datasource interface. I appended the Datasource part of the original mail below. As I do not know how you think the new interface should look like and if there are that much differences to the old Database interf

[castor-dev] TC66 fails on oracle (resend)

2004-09-15 Thread Ralf Joachim
ld fail (unless using PostgreSQL)."); } catch (Exception e) { assertTrue(true); } } For me it looks like the testSizeD() case should not be executed or changed to the opposit for oracle. What's the right thing to do? MfG Ralf Joachim --

[castor-dev] TC66 fails on oracle

2004-09-14 Thread Ralf Joachim
} } For me it looks like the testSizeD() case should not be executed or changed to the opposit for oracle. What's the right thing to do? MfG Ralf Joachim --- If you wish to unsubscribe from this mailing, send mail to [EMAIL PRO

Re: [castor-dev] How to become a commiter

2004-09-13 Thread Ralf Joachim
Hello Kalpesh, if you want me to, I can prepare the TxSynchronizable patch based on your code as I need that for my project too. I am not working with JMS at the moment, so it would be better that you prepare this part yourself. Regards Ralf - Original Message - From: "Kalpesh Patel" <

Re: [castor-dev] User Group Meeting in Germany

2004-05-25 Thread Ralf Joachim
Hi Werner and other castors, basically I am interested in a meeting of Castor users and developers but also others may have some questions about the organisation. Where should it take place (asked by werner before)? - Vienna - Hamburg - Munich - Stuttgart When should the meeting take place? - m

Re: [castor-dev] Disconnected Record Idea....

2004-04-30 Thread Ralf Joachim
Hey Nick, please try: CALL SQL select from AS foo.bar isn't it what you are looking for? regards Ralf - Original Message - From: "Nick Stuart" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 30, 2004 4:22 PM Subject: [castor-dev] Disconnected Record Idea

Re: [castor-dev] examples for OQL-Queries (aggregate functions)

2004-02-20 Thread Ralf Joachim
Hallo Marco, I don't know how to use OQL count and therefor use CALL SQL instead. call sql select count(ID) as COUNT from TABLE as SizeJDO Your table 'TABLE' needs a column 'ID' to use this query and you need an object 'SizeJDO' with a dummy mapping. public class SizeJDO { private int _si

Re: [castor-dev] Obtaining refernceto Parent class-Castor limitation??

2004-02-17 Thread Ralf Joachim
Hey Jim, I am not an expert for castor XML, but have you tried something like public class Foo { .. public void setBar(Bar bar) { if (this.bar != bar) { this.bar = bar; bar.setFoo(this); }} .. } public class Bar { ... public void setFoo(Foo foo) { if (this.foo != foo) { this.foo = f

Re: [castor-dev] update in one transaction

2004-01-05 Thread Ralf Joachim
Hi Roger,   what about the following code:   // start transaction db.begin(); // load detailDDD ddd = (DDD)db.load(DDD.class, new Long(1000)); // set detailstatus to 1ddd.setDetailstatus(1); //the original value was 0 // get master of the detail changed MMM mmm = ddd.getMaster();  

Re: [castor-dev] Many-to-Many with an association object

2003-12-23 Thread Ralf Joachim
Hello John,   castor do not support many-to-many relations with additional properties in the association.   That means for your example, if you use many-to-many relation between Student and Course  with Enrollment as association, Enrollment can not have grade or days missed.   If you want Enr

Re: [castor-dev] Use Different Object Key on Many-Key (Left Outer Join)

2003-06-11 Thread Ralf Joachim
Hi Ben, if you create table/class 'Category' with primary key 'categoryid' and reference 'categoryid' by 'product.categoryid' and 'productheader.categoryid' it should be possible to define a mapping with castor. A OQL similar to LEFT OUTER JOIN productheader ON product.categoryid=productheader.

Re: [castor-dev] Many-to-many: how to handle extra columns in an N:M table that REQUIRE data?

2003-05-29 Thread Ralf Joachim
Dear Bruce, if you have 2 classes with n:m mapping and no additional attributes for the mapping, this will be handled by castor as expected. The product - category examples shows how to do this. If additional attributes are required this should not be addressed by castor mapping but with the desi

Re: [castor-dev] Help for mapping.xml

2003-04-02 Thread Ralf Joachim
pplicable to the source generator. > > Can you give me a small sample for a binding file that will prevent > generation of the Prices class? > > Thanks in advance > > Hiran Chaudhuri > > > - Original Message - > From: "Ralf Joachim" <[EMAI

Re: [castor-dev] Unable to run the castor example, pls help

2003-04-01 Thread Ralf Joachim
Castor works with Xerces not Crimson. Try to search the mail archiv as a patch for using Crimson may be available.   If you download castor source archiv all libs are included.   - Original Message - From: wing To: [EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 4:59

Re: [castor-dev] Help for mapping.xml

2003-04-01 Thread Ralf Joachim
I think this problem has been discused within the last two month on the mailing list. There had been two solutions: - use binding file to omit Prices class ( ArrayList of Price in Product) - map Prices to a view on Product table You may have the idea to use Product as a wrapper for Prices and om

Re: [castor-dev] FAQ: question about "Different cardinalities of relationship"

2003-04-01 Thread Ralf Joachim
See my comment inline. - Original Message - From: "Mattias Campe" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 31, 2003 9:37 PM Subject: [castor-dev] FAQ: question about "Different cardinalities of relationship" > Hi, > > as I need a similar example as on > http://ca

Re: [castor-dev] RollbackException with JBOSS

2003-03-31 Thread Ralf Joachim
Hi Andy, we use the following mapping but you will see another problem coming up with this mapping. There had been bug 1045 in castor that still appear in 0.9.4.3 but according to bugzilla should be solved in CVS. In 0.9.4.3 and previeous versions of castor the sp

Re: [castor-dev] Castor JDO

2003-03-27 Thread Ralf Joachim
Have a look at the following links: http://javaboutique.internet.com/Map_Java_Objects/ http://www.spiderlogic.com/modules.php?name=News&file=article&sid=16 - Original Message - From: "Leonard" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 27, 2003 4:16 PM Subject: [

Re: [castor-dev] no solution to my pbm?

2003-03-27 Thread Ralf Joachim
You have to execute: SELECT d from Product d where d.name = 'toto' d.name or d.dummy references the name you used in your mapping.xml. Castor can not access the properties of your classes directly. It insteed calls the getter and setter methods. field name: du

Re: [castor-dev] Loading Extended Objects

2003-03-13 Thread Ralf Joachim
Techeira, Vincent X -ND" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 13, 2003 5:48 PM Subject: Re: [castor-dev] Loading Extended Objects > The example doesn't use an identity and maps to XML, I have to use an identity since > I'm mapping to

Re: [castor-dev] How do I use a wrapper class correctly? Getting MappingException: Field element ... not found!

2003-03-13 Thread Ralf Joachim
Hi Peter, as I understand your problem you need the Notes class according to some other design issues even if castor do not need it. As you stated in the subject of your mail you should use Cards class as a wrapper for the Notes class. With this design you need all methods castor wants to access

Re: [castor-dev] Loading Extended Objects

2003-03-13 Thread Ralf Joachim
Hi, did you take a look on castor JDO example. There is a class PC that extends class Product. Take care on the implementation of class Product that implements Persistent interface and overwrites jdoLoad() methode. Ralf - Original Message - From: "Techeira, Vincent X -ND" <[EMAIL PROT

Re: [castor-dev] Troubles storing the Object ID into a one-to-one relation

2003-03-12 Thread Ralf Joachim
ject ID into a one-to-one relation > Em Qua 12 Mar 2003 10:28, Ralf Joachim escreveu: > > Hi Ralf and Bruce. > > Thanks for your answers. > > > Using bi-directional relation between your classes does not mean that you > > need bi-directional relations in your database

Re: [castor-dev] Troubles storing the Object ID into a one-to-one relation

2003-03-12 Thread Ralf Joachim
Hi Flavio, see my comments inline. - Original Message - From: "Flávio Luiz Schiavoni" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 11, 2003 5:39 PM Subject: Re: [castor-dev] Troubles storing the Object ID into a one-to-one relation > Em Ter 11 Mar 2003 17:28, Bruce S

Re: [castor-dev] Troubles storing the Object ID into a one-to-one relation

2003-03-07 Thread Ralf Joachim
Do you have both mappings in one mapping file with defining ClassTwo mapping before ClassOne mapping as in the castor example for ProductGroup and Product. - Original Message - From: "Flávio Luiz Schiavoni" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 12:00 PM

Re: [castor-dev] unclean code in Castor JDO Engine? (was: Problem running sample)

2003-03-05 Thread Ralf Joachim
e case here. Who can comment on that? > > Hiran > > - Original Message - > From: "Ralf Joachim" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, March 05, 2003 5:32 PM > Subject: Re: [castor-dev] unclean code in Castor JDO Engin

Re: [castor-dev] [JDO] 1 class: n table

2003-03-05 Thread Ralf Joachim
You may also use the Project class as a wrapper to the Company class. - db model -- table company - company_id -> PK - name table projekt - project_id -> PK - company_id -> FK on company - name --- classes --- class Company { private int _i

Re: [castor-dev] OQLSyntaxException (token instr)

2003-03-05 Thread Ralf Joachim
Hi Antje, OQL do not know how to handle the function/methode call to instr. See http://castor.exolab.org/oql.html for a valid OQL syntax. I also don't know a database offering such a function but there may be a solution for you using the following query syntax: SELECT c FROM Processes c where (c

Re: [castor-dev] unclean code in Castor JDO Engine? (was: Problem running sample)

2003-03-05 Thread Ralf Joachim
Hi Hiran, I also recognized conversion from integer to big decimal at oracle. In my case the reason is the type handling of oracle. I create a table with SQL: CREATE TABLE TEST_01 (ID INTEGER) When I check the datatype oracle uses and delivers when I request the SQL

Re: [castor-dev] converting Java type to field type for mapping

2003-03-04 Thread Ralf Joachim
Hi Eric, the mapping between Java and SQL type is embedded in the code. See org.exolab.castor.jdo.engine.SQLTypes.java. What is your problem with the mapping? Ralf - Original Message - From: "Eric Emminger" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 04, 2003 4:4

Re: [castor-dev] Using the setter method while unMarshalling

2003-03-04 Thread Ralf Joachim
Hi Kunal, castor uses the getter and setter methods to access the properties of your objects, therefore the getters and setters have to be public but your properties can be private. Ralf - Original Message - From: "Kunal Jain" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday,

Re: [castor-dev] Castor JDO Config DTD?

2003-03-04 Thread Ralf Joachim
Hi Robert, as far as I know the castor server had an hard disc failure and had been down for some days. According to your problem, don't you think it's better the change the DTD link to a local directory or local URL. Please take a look into the schema subdirectory of the distribution to find a

Re: [castor-dev] Question 1 & 2 for Bruce's article: "contains" and underscores in names

2003-02-21 Thread Ralf Joachim
Q#2: If you don't like the underscore, leave it out. In my opinion it makes code more readable as it shows the scope of the variable. As an alternative you can use any other notation to distinguish between lokal and member variables (categories/mycategories or this.categories/categories). Ralf

Re: [castor-dev] Question 3 for Bruce's article: why the xml-attribute in map-to

2003-02-21 Thread Ralf Joachim
If you only use the jdo and not the xml features of castor you don't need the xml attribute inside the map-to element neither you need the bind-xml element. Ralf - Original Message - From: "Keld Helbig Hansen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 21, 2003 7

[castor-dev] Bugfix (Bug 1045) date->char converter

2003-02-18 Thread Ralf Joachim
Bruce, Mickael, I have prepared a bugfix for bug 1045 and wanted to send it to the mailing list. According to the size (154kB) your mailer refused that. Should I split the mail or send it direct to one of you? Below you find the text of my original mail: Ralf >Bruce, Mickael, > >could one of

Re: [castor-dev] Enhancement (Bug 1209) Converter boolean(true)->numeric(-1)

2003-02-18 Thread Ralf Joachim
- Original Message - From: "Bruce Snyder" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 18, 2003 7:31 AM Subject: Re: [castor-dev] Enhancement (Bug 1209) Converter boolean(true)->numeric(-1) > This one time, at band camp, Ralf Joachim said: &g

Re: [castor-dev] Enhancement (Bug 1209) Converter boolean(true)->numeric(-1)

2003-02-18 Thread Ralf Joachim
cement (Bug 1209) Converter boolean(true)->numeric(-1) > This one time, at band camp, Ralf Joachim said: > > RJ>I added a parameterized converter for boolean->numeric and boolean->integer. > RJ> > RJ>To allow concurrent access to a remote database from castor

[castor-dev] Bug 1045

2003-02-13 Thread Ralf Joachim
Hallo Mickael, after searching Bugzilla I found that you are assigned to bug 1045. Can you please tell me about the status of the fix? As we need this for our application, I can contribute to the fix if you want me to. Regards Ralf ---

Re: [castor-dev] Possible bug at parameterized type converter date -> char

2003-02-10 Thread Ralf Joachim
I also got the same problem with 0.9.4.2. Can anybody help me where to start to fix the bug? Regards Ralf - Original Message - From: "Ralf Joachim" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 06, 2003 7:15 PM Subject: [castor-dev] Possibl

Re: [castor-dev] SQL Server ODBC

2003-01-31 Thread Ralf Joachim
Hi Bruce, isn't it possible to use a JDBC-ODBC bridge driver like sun.jdbc.odbc.JdbcOdbcDriver() Regards Ralf - Original Message - From: "Bruce Snyder" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 30, 2003 5:53 PM Subject: Re: [castor-dev] SQL Server ODBC > This

Re: [castor-dev] ObjectModifiedException when JDO objects are changed

2002-11-21 Thread Ralf Joachim
gt; this is usually that Oracle cannot tell the difference between an > empty String and a null String. > > This has already been discussed on this mailing list. > > Ralf Joachim wrote: > > Hello > > > > When I iterate through QueryResults and change a property with

Re: [castor-dev] Pleeease help !!!!!

2002-11-14 Thread Ralf Joachim
Is it possible for you to omit the bidirectional mapping? If Department do not have a collection of Doctors, T1 will load Doc1 and Dept1 but not Doc2.   I did not test this and I am not shure if it works as you want.   - Original Message - From: Arun Sudhakaran To: [EMAIL

[castor-dev] How can I set properties when iterating over JDO QueryResults

2002-11-13 Thread Ralf Joachim
{ pfam = ( ProduktFamilie ) results.next(); pfam.setText(pfam.getText() + "x"); } db.commit(); db.close(); Is there anything wrong with this code? What can be the reason for the exception? Hope someone can help me wit

[castor-dev] ObjectModifiedException when JDO objects are changed

2002-11-11 Thread Ralf Joachim
Hello When I iterate through QueryResults and change a property with its setter methode I get ObjectModifiedException at db.Commit. This happens for all records/objects of QueryResult except the last one, where it works as expected (value is changed after commit). Is there something wrong with my