annotate Lib/IMPL/ORM/Schema/Entity.pm @ 47:a9b70d836b28

Web::Application development (request controller) Security development
author Sergey
date Tue, 23 Feb 2010 22:57:16 +0300
parents 6d33f75c6e1f
children 16ada169ca75
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
28
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
1 package IMPL::ORM::Schema::Entity;
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
2 use strict;
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
3 use warnings;
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
4
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
5 use base qw(IMPL::DOM::Node);
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
6 use IMPL::Class::Property;
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
7
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
8 BEGIN {
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
9 public property entityName => prop_get | owner_set;
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
10 }
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
11
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
12 our %CTOR = (
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
13 'IMPL::DOM::Node' => sub {
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
14 nodeName => 'Entity'
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
15 }
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
16 );
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
17
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
18 sub CTOR {
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
19 my ($this,$name) = @_;
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
20
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
21 $this->entityName($name);
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
22 }
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
23
6d33f75c6e1f ORM in works
Sergey
parents:
diff changeset
24 1;