Mercurial > pub > Impl
annotate Lib/IMPL/ORM/Schema/Entity.pm @ 104:196bf443b5e1
DOM::Schema RC0 inflators support, validation and some other things,
Minor and major fixes almost for everything.
A 'Source' property of the ValidationErrors generated from a NodeSet or a NodeList is subject to change in the future.
| author | wizard |
|---|---|
| date | Tue, 11 May 2010 02:42:59 +0400 |
| parents | 16ada169ca75 |
| children | 4267a2ac3d46 |
| rev | line source |
|---|---|
| 49 | 1 package IMPL::ORM::Schema::Entity; |
| 2 use strict; | |
| 3 use warnings; | |
| 4 | |
| 5 use base qw(IMPL::DOM::Node); | |
| 6 use IMPL::Class::Property; | |
| 7 | |
| 8 BEGIN { | |
| 9 public property entityName => prop_get | owner_set; | |
| 10 } | |
| 11 | |
| 12 our %CTOR = ( | |
| 13 'IMPL::DOM::Node' => sub { | |
| 14 nodeName => 'Entity' | |
| 15 } | |
| 16 ); | |
| 17 | |
| 18 sub CTOR { | |
| 19 my ($this,$name) = @_; | |
| 20 | |
| 21 $this->entityName($name); | |
| 22 } | |
| 23 | |
| 24 1; |
