select only on column

2003-12-18 Thread Rutzen, Joerg
hi, is there a possibility to select only one column. if i code this ... Criteria crit = new Criteria(); crit.add( EinsatzAbPeer.NAME, "Meyer" ); try { list = EinsatzAbPeer.doSelect( crit ); ... the statement

generate a BaseClass to have lower column name

2003-12-18 Thread Rutzen, Joerg
Hi, is there a possibility to generate a BaseClass to have lower column name /** the column name for the ID field */ public static final String ID; ID = "einsatz_ab.ID"; .. should be ID = "einsatz_ab.id"; just in the schema file ? ... ... Regards Jörg

Re: Saving related objects

2003-12-18 Thread Scott Eade
Jim Menard wrote: I want to make sure I understand a few basic points about using Torque. When I save an object, it does not save any related objects, correct? For example, BillAccount account = new BillAccount(); Address address = new Address(); account.setAddress(address); acc

Eclipse crashes when running Torque

2003-12-18 Thread Sonu Vijay
My Eclipse IDE crashes very often when I try to run the Torque Ant Script from within the IDE. I just get a small window saying the javaw.exe is exiting due to an error and a log is being created. Can't find the damn log anywhere also. Anybody seen anything like that on Windows 2000. Thanks _

RE: torque-3.1.zip archives

2003-12-18 Thread Edwin Yearwood
Here's a dump of the output from the build. [echo] loading templates from templates [torque-sql] Using contextProperties file: E:\eSpresso\JBprojects\Apache Torque\torque-gen-3.1\build.properties [torque-sql] Generating to file E:\eSpresso\JBprojects\Apache Torque\torque-gen

Re: IDs not generated until after save?

2003-12-18 Thread Jim Menard
On Dec 18, 2003, at 11:57 AM, Manske, Michael wrote: you have to specify the id generation method on database level (or table level if needed) in *schema.xml: or Ah, that's it. I used defaultIdMethod="native". I'll try "idbroker". we specify always defaultIdMethod="idbroker" on database level

RE: IDs not generated until after save?

2003-12-18 Thread Manske, Michael
you have to specify the id generation method on database level (or table level if needed) in *schema.xml: or we specify always defaultIdMethod="idbroker" on database level and idMethod="none" on table level for tables which doesn't require id generation. btw. i'm still using torque 3.0.2 but

IDs not generated until after save?

2003-12-18 Thread Jim Menard
I'm trying to confirm my understanding of primary/foreign key associations in newly-created objects. With the code BillAccount account = new BillAccount(); Address address = new Address(); account.setAddress(address); address.save(); account.save(); I see t

AW: Mailing list archive URL

2003-12-18 Thread Dieter Engelhardt
You find everything here http://jakarta.apache.org/site/mail2.html Dieter -Ursprungliche Nachricht- Von: Jim Menard [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 18. Dezember 2003 17:19 An: Apache Torque Users List Betreff: Mailing list archive URL Is there a mailing list archive on t

Re: DB2 datasource

2003-12-18 Thread Michael Della Bitta
i think the problem is that DB2 assumes the schema = the username if none is provided in the sql. so you're creating all your tables under schema DB2ADM, and trying to access them as if they were in schema USER. i'm unaware of the support for database schemas in Torque. i seem to remember

Mailing list archive URL

2003-12-18 Thread Jim Menard
Is there a mailing list archive on the Web? The link to the archives in the Torque docs does not work. Thank you. Jim -- Jim Menard, [EMAIL PROTECTED], http://www.io.com/~jimm/ "The theory of computation states that all automatons can be emulated by a Turing machine. I have a less abstract but m

Saving related objects

2003-12-18 Thread Jim Menard
I want to make sure I understand a few basic points about using Torque. When I save an object, it does not save any related objects, correct? For example, BillAccount account = new BillAccount(); Address address = new Address(); account.setAddress(address); account.save(

Re: How do I post messages to the newsgroup?

2003-12-18 Thread Marc Berman
Just testing adding to a thread. --- Marc Berman <[EMAIL PROTECTED]> wrote: > Help! > > How can I post and respond to messages to the > torque-users newsgroup? > > Thanks, > Marc > > __ > Do you Yahoo!? > Protect your identity with Yahoo! Mail AddressGuard > http

Re: Nullable foreign keys

2003-12-18 Thread Jim Menard
You must put in the sschema.xml that language_id has a javaType='Object'. This is the only way to put a null in a column with torque. Thank you, Felipe and Adrian, for your answers. Jim -- Jim Menard, [EMAIL PROTECTED], http://www.io.com/~jimm/ "All those who believe in psychokinesis raise my

RE: How do I post messages to the newsgroup?

2003-12-18 Thread Dave Newton
On Thu, 2003-12-18 at 10:00, Prakash, Anton wrote: > Could you help me unregister from this list ? Read the bottom of the email. > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]

RE: How do I post messages to the newsgroup?

2003-12-18 Thread Prakash, Anton
Hi guys, Could you help me unregister from this list ? Thanks, Anton -Original Message- From: Dieter Engelhardt [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 6:53 AM To: Apache Torque Users List Subject: AW: How do I post messages to the newsgroup? I guess you already fo

Re: Nullable foreign keys

2003-12-18 Thread Felipe Ramos
You must put in the sschema.xml that language_id has a javaType='Object'. This is the only way to put a null in a column with torque. Jim Menard wrote: I'm trying to understand how nullable foreign keys work in Torque. I have a database table ("member") with a foreign key ("language_id") to

Re: torque-3.1.zip archives

2003-12-18 Thread Bogdan Vatkov
Are you sure that the messages are the only reason for build to fail... I havent fixed these errors and still can generate my model ..even additional generation eg: . jsp: [echo] +--+ [echo] |

AW: How do I post messages to the newsgroup?

2003-12-18 Thread Dieter Engelhardt
I guess you already fond a way ;-) -Ursprungliche Nachricht- Von: Marc Berman [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 18. Dezember 2003 15:46 An: [EMAIL PROTECTED] Betreff: How do I post messages to the newsgroup? Help! How can I post and respond to messages to the torque-users

AW: Nullable foreign keys

2003-12-18 Thread Tillich, Adrian
Hello Jim, I guess you are using the primitive datatype for the foreign key field in your business class. This will always be set to zero when the class is initialized. Use the object type instead. Therefor you have to change the database.dtd. Good luck, Adrian (who had the same problem last week

Nullable foreign keys

2003-12-18 Thread Jim Menard
I'm trying to understand how nullable foreign keys work in Torque. I have a database table ("member") with a foreign key ("language_id") to another table. The foreign key may be null. When I load a member, it's language is null. Actually, the language_id seems to be set to 0, which really confu

How do I post messages to the newsgroup?

2003-12-18 Thread Marc Berman
Help! How can I post and respond to messages to the torque-users newsgroup? Thanks, Marc __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree -

RE: torque-3.1.zip archives

2003-12-18 Thread Manske, Michael
Hi, make sure that the log4j config file is placed in the root directory of your generator installation, eg. /torque-gen-3.1/log4j.properties. Michael > -Original Message- > From: Edwin Yearwood [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 17, 2003 5:28 PM > To: Apache Torqu

Re: OJB and Torque

2003-12-18 Thread Pedro Salgado
I only read the Torque tutorials but, since no one else answered... Hope it helps. I can tell you that I use Torque as a database and data structure generator (SQL) and for building the OJB model and repository (I skip making a very complex model with objects with many collections - I rather h

DB2 datasource

2003-12-18 Thread Charles-Alexandre Sabourdin
Probleme with datasource and maybe SQL: Hello, I have the following problems : Basically I use two different users 1 for administating (user=db2adm) and one only has a reader (user=user). note : SELECT * FROM Table1 => Error: COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/LINUX] SQL0204N