The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
########################################
# used to test expansion of collection
########################################
package Expand;
use base qw(Class::AutoClass);
use vars qw(@AUTO_ATTRIBUTES %DEFAULTS %AUTODB);
@AUTO_ATTRIBUTES=qw(id name sex friends hobbies);
%DEFAULTS=(friends=>[],hobbies=>[]);
%AUTODB=
  (collections=>
   {Person=>qq(id integer, name string, sex string, friends list(object), expand int),
    Expand=>qq(id integer, name string)});
Class::AutoClass::declare;

1;