[Newbies] ActiveRecord?

Norbert Hartl norbert at hartl.name
Thu Apr 3 09:49:18 UTC 2008


On Wed, 2008-04-02 at 22:48 -0400, Rob Rothwell wrote:
> Has anyone written anything like the ActiveRecord for Glorp?  VW7.6
> has something, but it would be slightly painful to port (for me at
> least) as it uses VW Package definitions and a few other things I am
> not familiar with.
> 
There is a FileOut30 package which provides writing out code in a lot
of dialects (it's in the public store). If you want to convert a
complete package just install FileOut30. In the preferences you can
choose squeak as file out format. If you file out the package you should
be able to read it in squeak without too much hussle.

If you are not successful than email me. I use my own converter for
VW code to port Glorp to squeak.

> I know Ramon did something that used Magritte, but I am not using that
> in my application.
> 
> There are many ways of varying complexity that one could try to
> standardize your Glorp mappings within your application, so I just
> thought I'd check if anyone had anything working before I go down that
> road!

Glorp can figure out a lot of the mapping setting on its own. For 
easy mappings you can just leave out class mapping and descriptor
mappings. No need to have ActiveRecord stuff from the start.

Norbert



More information about the Beginners mailing list