Is anybody out there successful using inheritance with torque or know a good tutorial. The documentation of Torque in this matter is really a shame for the whole project. (sorry for the rough words, but even the rest of the documentation is not the best)

This leads me to the point considering other OR mappers and the future of Torque. I assume all list readers are thinking positive of Torque, but do you habe reasons or experiences not using other tools. Look here for comparisions:

http://www.rollerweblogger.org/page/roller/20021013


For saying some good words, starting with Torque was quite easy and the documentation was quite enough for doing a simple modell, but not structured very good.



Ok, back to my real problem. I don't expect that someone goes through all my example, but some pointers to documentation would be helpful.


I tested following the schema below, the results is: class AABookmark will be generated class ABBookmark not. Perhaps my key is the missunderstanding or dunno of the property "key" in the inheritance tag:

Greetings so far
Thomas


<table name="Listabstract" description="Table">
<column
name="idA"
autoIncrement="true"
required="true"
primaryKey="true"
type="INTEGER"
inheritance="single" >
<inheritance key="A" class="AABookmark" extends="com.crapoud.dictionary.database.Listabstract"/>
</column>
<column
name="idB"
autoIncrement="true"
required="true"
primaryKey="true"
type="INTEGER"
inheritance="single" >
<inheritance key="B" class="ABBookmark" extends="com.crapoud.dictionary.database.Listabstract"/>
</column>
<column
name="query"
required="true"
type="INTEGER"
inheritance="single" >
<inheritance key="A" class="AABookmark" extends="com.crapoud.dictionary.database.Listabstract"/>
<inheritance key="B" class="ABBookmark" extends="com.crapoud.dictionary.database.Listabstract"/>
</column>
<column
name="goalA"
required="true"
type="INTEGER"
inheritance="single" >
<inheritance key="A" class="AABookmark" extends="com.crapoud.dictionary.database.Listabstract"/>
</column>
<column
name="goalB"
required="true"
type="INTEGER"
inheritance="single" >
<inheritance key="B" class="ABBookmark" extends="com.crapoud.dictionary.database.Listabstract"/>
</column>
</table>


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

Reply via email to