module DmPanlex class Wcex include DataMapper::Resource storage_names[:default] = 'wcex' property :ex, Integer, :key => true property :tt, Text, :required => true, :unique_index => true has n, :wcs, :parent_key => :ex, :child_key => :ex end end