updating collections (newbie)

2004-06-17 Thread Bartosz Jankiewicz
Hello, I just started using OJB and following question arised. Is there a way of updating referenced Collection without querying item objects from database? Example: User object hava Collection of Role objects attribute. All aplicable Role objects are already stored in database. Some view returns

RE: generating sql for internal tables and schema

2004-05-18 Thread Bartosz Jankiewicz
After few days I managed to generate repository and torque schema with XDoclet module and now I stucked trying to generate SQL for internal tables and my model tables. I use following target from my build file: target name=init-sql ant dir=.

RE: generating sql for internal tables and schema

2004-05-18 Thread Bartosz Jankiewicz
On Tue, 18 May 2004, Bartosz Jankiewicz wrote: Finally I've solved the problem. Default suffix for torque schema files is -schema.xml so ant hasn't found my project_schema.xml file. This case is now obvious to me but still hasn't been mentioned in documentation shipped with OJB RC6

problem with xdoclet generating torque schema

2004-05-17 Thread Bartosz Jankiewicz
Hello, I've searched archives of the group and didn't find any sollution to my problem. I coppied necessary files after XDoclet module documentation, XDoclet module generates repository_user.xml but throws exceptions when generating torque schema (project_schema.xml). Some parts of stack trace:

RE: problem with xdoclet generating torque schema

2004-05-17 Thread Bartosz Jankiewicz
-Original Message- From: Thomas Dudziak [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 10:13 AM To: OJB Users List Subject: Re: problem with xdoclet generating torque schema On Mon, 17 May 2004, Bartosz Jankiewicz wrote: Hello, I've searched archives

RE: problem with xdoclet generating torque schema

2004-05-17 Thread Bartosz Jankiewicz
-Original Message- From: Thomas Dudziak [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 10:13 AM To: OJB Users List Subject: Re: problem with xdoclet generating torque schema On Mon, 17 May 2004, Bartosz Jankiewicz wrote: Hello, I've searched archives

generating sql for internal tables and schema

2004-05-17 Thread Bartosz Jankiewicz
Hello, After few days I managed to generate repository and torque schema with XDoclet module and now I stucked trying to generate SQL for internal tables and my model tables. I use following target from my build file: target name=init-sql ant dir=.

RE: generating sql for internal tables and schema

2004-05-17 Thread Bartosz Jankiewicz
tables and schema I have an error like this when I use the torque maven plugin. The reason of my error was that I didn't set the properties : torque.database = mysql Torque need the db kind the generate sql from the schema. Nicolas, Bartosz Jankiewicz [EMAIL PROTECTED] 17