Version Controll System for RDBO.
[blog.pm-common-perl-mods.git] / Rose-DB-Object-VCS / t / lib / Post.pm
blobe548b50febafd4e2739c4edeff3865624598a473
1 package Post;
3 use strict;
5 use base qw(DB::Object);
7 use Rose::DB::Object::VCS qw(:all);
8 use Rose::DB::Object::Metadata::VCS;
9 sub meta_class { 'Rose::DB::Object::Metadata::VCS' }
11 __PACKAGE__->meta->setup(
12 table => 'posts',
14 columns => [
15 qw/ id title content user_id addtime revision /,
18 primary_key_columns => [ qw/ id / ],
20 relationships => [
21 diffs => {
22 type => 'one to many',
23 class => 'PostDiff',
24 column_map => { id => 'post_id' }
28 versioned_columns => [ qw/ title content / ]
31 =head1 AUTHOR
33 vti
35 =head1 LICENSE
37 This library is free software, you can redistribute it and/or modify
38 it under the same terms as Perl itself.
40 =cut