<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>tests/integration/criteria_test.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -90,6 +90,11 @@ module Clipper
       add_association OneToMany.new(self, name, mapped_name, &amp;match_criteria)
     end
 
+    def property(field_name, property_type, *repository_types)
+      @target.accessor field_name =&gt; property_type
+      field(field_name, *repository_types)
+    end
+
     private
 
     def add_association(association)</diff>
      <filename>lib/clipper/mapping.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,14 +3,22 @@ module Clipper
     module Types
       module Abstract
         class Serial
+          include Clipper::Repository::Type
         end
         class Integer
+          include Clipper::Repository::Type
         end
         class String
+          include Clipper::Repository::Type
+
+          def initialize(length = 255)
+          end
         end
         class Float
+          include Clipper::Repository::Type
         end
         class Boolean
+          include Clipper::Repository::Type
         end
       end # class Sqlite
     end # class Jdbc</diff>
      <filename>lib/clipper/repositories/types/abstract.rb</filename>
    </modified>
    <modified>
      <diff>@@ -106,6 +106,27 @@ class Integration::MappingTest &lt; Test::Unit::TestCase
     assert(mapping.is_key?(id))
   end
 
+  def test_property
+    mapping = Clipper::Mapping.new(@repository, @mapped_class, @table_name)
+    assert_nothing_raised do
+      mapping.property(:id, Integer, @id_type.new)
+    end
+  end
+
+  def test_property_defines_an_accessor
+    mapping = Clipper::Mapping.new(@repository, @mapped_class, @table_name)
+    mapping.property(:property, Integer, @id_type.new)
+
+    assert_not_nil(@mapped_class.accessors[:property])
+  end
+
+  def test_property_adds_a_field_to_mapping
+    mapping = Clipper::Mapping.new(@repository, @mapped_class, @table_name)
+    mapping.property(:property, Integer, @id_type.new)
+
+    assert_nothing_raised { mapping[:property] }
+  end
+
   def test_one_to_many
     assert_nothing_raised do
       mapping.one_to_many(:children, @child_class) do |parent, child|</diff>
      <filename>tests/integration/mapping_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7c8768c2ee03f71dc20319738134a0d0fd8f5378</id>
    </parent>
    <parent>
      <id>b3d6065d2487d5b915aab1ba448ad0915198f965</id>
    </parent>
  </parents>
  <author>
    <name>Fabio Rehm</name>
    <email>fgrehm@gmail.com</email>
  </author>
  <url>http://github.com/wiecklabs/clipper/commit/adabd2b78c01eed51f84f8ea33604b4daf2870f0</url>
  <id>adabd2b78c01eed51f84f8ea33604b4daf2870f0</id>
  <committed-date>2009-09-22T17:45:14-07:00</committed-date>
  <authored-date>2009-09-22T17:45:14-07:00</authored-date>
  <message>Merging changes</message>
  <tree>a0670d850210eccf15ccd9fab27c4edc981c675b</tree>
  <committer>
    <name>Fabio Rehm</name>
    <email>fgrehm@gmail.com</email>
  </committer>
</commit>
