SOULLARD Clement wrote:

And my last question is very precise.
In the sample app a table named RDF is created. Does it contain turbine data or only the apps data ?
I ask this question because when I tried to rename the table in the sample app, I have


TorqueException: The table RDF does not have a proper entry in the ID_TABLE.

Is RDF a component of turbine or a part of my app ?

Hello,


I think I can answer this part of your post, but I'll leave the rest to more experienced folk.

If you look at the contents of ID_TABLE, there is a row for the table RDF. You'll need to change the TABLE_NAME for that row. There are lots of other places in the templates sql source, and java source where you'll need to change RDF, Rdf, and rdf to your new table name. Below is what my ID_TABLE looks like:

mysql> select * from ID_TABLE;
+-------------+-------------------------+---------+----------+
| ID_TABLE_ID | TABLE_NAME              | NEXT_ID | QUANTITY |
+-------------+-------------------------+---------+----------+
|         101 | TURBINE_PERMISSION      |    1000 |       10 |
|         102 | TURBINE_ROLE            |    1000 |       10 |
|         103 | TURBINE_GROUP           |    1000 |       10 |
|         104 | TURBINE_ROLE_PERMISSION |    1000 |       10 |
|         105 | TURBINE_USER            |    1000 |       10 |
|         106 | TURBINE_USER_GROUP_ROLE |    1000 |       10 |
|         107 | TURBINE_SCHEDULED_JOB   |    1000 |       10 |
|        1101 | INDIVIDUAL              |    1000 |       10 |
+-------------+-------------------------+---------+----------+
8 rows in set (0.00 sec)

So the RDF table is data for your application which can be changed. But ID_TABLE which is a component of turbine needs to know the name of this table.


In playing with the latest TDK, I've modified the newapp-schema.xml with a new table name. This is before running the "ant init" of the application. Doing the change at this point lets turbine build the "om" classes with the new table name. There is still a fair amount of editing left to do in the templates and java files. Good luck from another relatively fresh turbine user!

--bradoaks.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to