Is anybody playing with the idea of adding support for database views in 
Torque?

The reason for me to do this is that my database structure is normalized and
I have to relate to joined tables. 

I know that the recommended way is to create a "Manager", but I like the 
concept of automatic creation. An another problem with managers is that they 
demands several db hits when using the om classes.

What I have in mind is that you can specify a view in the schema and let 
Torque create the om classes (Peer, Mapbuilder and the data "bean") whitch
behave like the stuff for tables (maybe except for deletes, inserts and 
updates). 
Is this possible without changing to much/many in/of the existing classes?

An alternative way is adding support for a select method in the Peers that
returns a Vector containing Torque/automatic created manager objects based on 
a foreignKey attribute in the schemas table spesification.

Any thoughts or facts ?

regards 
killi
-- 
Penguins are nice animals -
if you get to know them!


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to