Hello,

I have some Entity sub-classes that together they represent some data.
In addition, I also have to deal also with different versions of data
which would represent one set of classes.

I've been trying to think how to best approach this problem with
Elixir and I feel that what I would like to do is dynamically generate
a class whose name is deterministically create depending on the
version, so that we would have different sets of classes and each set
would represent a version. So for example I would initially have:

class Movie(Entity) and class Genre(Entity)

I am more interested in creating classes during runtime that could be
something like:

Movie2004(Entity)/Genre2004(Entity) and Movie2005(Entity)/
Genre2005(Entity)

In other words, each version is a set of tables in the database.

Initially I tried to use EntityMeta as class factory but it didn't
work. I have no idea how would I go about to do the rest of the
initialization so that __elixir_statements__ and all the field data is
attached to the class.

Is this is sane way of doing things? Do you have a better approach for
this kind of solution? What else is missing in order to be able to
make things work?

Thanks!


--~--~---------~--~----~------------~-------~--~----~
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