Hello all,

I want/need to create a "base" class that contains some operations and
attributes, and all this attributes need to be inherited by my Entities.

So I not want to map this class as a Database Table, is just a
"placeholder" for that methods and props.


Example:

class MyHelperClass(object):
        def some_util_method(self):
                return some_useful_result


class MyDatabaseClass1(MyHelperClass):
        pass


class MyDatabaseClass2(MyHelperClass):
        pass



but, to be created ad database and managed by Elixir/SA my classes needs
to inherit from Entity., if I inherit MyHelperClass from Entity, a table
will be created ad database and all entities will be based on this and
have a foreign key.

my question. is there a way to inherit from Entity
"MyHelperClass(Entity)" but no setup the database for this?


I've successfully setup by using multiple inheritance, by this way
"class MyDatabaseClass1(Entity, MyHelperClass)" but I don't know if it
will cause some problem or not.


Thanks for any help

Att,
-- 
Alexandre da Silva
Analista de Sistemas - Bacharel em Sistemas de Informação (2003-2007)
-- 
Alexandre da Silva
Analista de Sistemas - Bacharel em Sistemas de Informação (2003-2007)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to