Re: newbie question about postgres: nextval

2009-02-11 Thread Ivano Luberti
Another little question about one of your suggestion. Remeber I use jdbc task to generate chema.xml file from the db. Greg Monroe ha scritto: In general, for autoincrement id fields coming out of the JDBC task, you will need to decide which method to use with automatic id fields. This is

Re: newbie question about postgres: nextval

2009-01-27 Thread Ivano Luberti
Message- From: Thomas Fischer [mailto:fisc...@seitenbau.net] Sent: Monday, January 26, 2009 12:22 PM To: Apache Torque Users List Subject: Re: newbie question about postgres: nextval Can you explaim why is so overwhelmed by Hibernate ? Is there some performance related isssue

Antwort: Re: newbie question about postgres: nextval

2009-01-27 Thread Thomas Fischer
My personal opinion is that there are two reasons: 1) documentation is _MUCH_ better for hibernate 2) The concept for hibernate seems to be easy: Give an object to Hibernate and Hibernate does all the persistence work. I'd like to add that I tend to disagree with the point easy

Re: newbie question about postgres: nextval

2009-01-27 Thread Thomas Vandahl
Ivano Luberti wrote: Then, given your answer about the limitations of the jdbc task, I think that the absence of some visual tool that is able to produce this schema files is something that prevents Torque to be more successful. For example if Power Architect would be able to generate both

newbie question about postgres: nextval

2009-01-26 Thread Ivano Luberti
Hello I have searched the net quite a lot but I have not been able to find the answer to this problem. I'm using postgres to generate torque classes but the automatic generation seems to make a few mistakes. In the base class I found this java statement private int pkAnagrafica =

RE: newbie question about postgres: nextval

2009-01-26 Thread Thomas Fischer
I'm using postgres to generate torque classes but the automatic generation seems to make a few mistakes. In the base class I found this java statement private int pkAnagrafica = nextval('anagrafica_pk_anagrafica_seq'::regclass); which is marked as wrong by the compiler. The same

Re: newbie question about postgres: nextval

2009-01-26 Thread Ivano Luberti
Here it is . In my prev message I didn't said that , I have defined the db using the server , then I have generated the schema using the jdbc ant task and the classes using the om ant task. I don't want to define myself the shema file because I'm more famliar with SQL and then I don't want to make

RE: newbie question about postgres: nextval

2009-01-26 Thread Greg Monroe
AM To: Apache Torque Users List Subject: Re: newbie question about postgres: nextval Here it is . In my prev message I didn't said that , I have defined the db using the server , then I have generated the schema using the jdbc ant task and the classes using the om ant task. I don't want

Re: newbie question about postgres: nextval

2009-01-26 Thread Thomas Fischer
In my prev message I didn't said that , I have defined the db using the server , then I have generated the schema using the jdbc ant task and the classes using the om ant task. I don't want to define myself the shema file because I'm more famliar with SQL and then I don't want to make Torque

Re: newbie question about postgres: nextval

2009-01-26 Thread Ivano Luberti
Ok, now I understand why someone has choosen to change the java code of the JDBC ant task (found it on some mailing list) ! Thomas Fischer ha scritto: I am surprised that the jdbc task recognizes foreign keys ? Or did you add the foreign-key elements yourself ? Thomas No the

Re: newbie question about postgres: nextval

2009-01-26 Thread Ivano Luberti
...@archicoop.it] Sent: Monday, January 26, 2009 10:15 AM To: Apache Torque Users List Subject: Re: newbie question about postgres: nextval Here it is . In my prev message I didn't said that , I have defined the db using the server , then I have generated the schema using the jdbc ant task

Re: newbie question about postgres: nextval

2009-01-26 Thread Thomas Fischer
Can you explaim why is so overwhelmed by Hibernate ? Is there some performance related isssue ? My personal opinion is that there are two reasons: 1) documentation is _MUCH_ better for hibernate 2) The concept for hibernate seems to be easy: Give an object to Hibernate and Hibernate does all

Re: newbie question about postgres: nextval

2009-01-26 Thread Ivano Luberti
I guess I need some aid in the field of comprehension ability: I tried to start using hibernate a few times but I have never found the right netry point in the docs, Torque has been really fast to learn at least to produce the first classes and first code for CRUD operations. Anyway, thanks again

RE: newbie question about postgres: nextval

2009-01-26 Thread Greg Monroe
that can be updated as tables change and re-generate the access objects; and the like. -Original Message- From: Thomas Fischer [mailto:fisc...@seitenbau.net] Sent: Monday, January 26, 2009 12:22 PM To: Apache Torque Users List Subject: Re: newbie question about postgres: nextval Can you

Re: newbie question about postgres: nextval

2009-01-26 Thread Thomas Vandahl
Thomas Fischer wrote: Can you explaim why is so overwhelmed by Hibernate ? Is there some performance related isssue ? My personal opinion is that there are two reasons: 1) documentation is _MUCH_ better for hibernate 2) The concept for hibernate seems to be easy: Give an object to Hibernate