lib/mdwa/dsl/entity_association.rb in mdd-3.0.15 vs lib/mdwa/dsl/entity_association.rb in mdd-3.0.16
- old
+ new
@@ -3,11 +3,11 @@
module DSL
class EntityAssociation
attr_accessor :source, :destination, :destination_view
- attr_accessor :name, :type, :composition, :description, :skip_views
+ attr_accessor :name, :type, :composition, :description, :skip_views, :style
ACCEPTED_TYPES = [:one_to_many, :many_to_one, :one_to_one, :one_to_one_not_navigable, :many_to_many]
def initialize(source)
self.source = source
@@ -24,9 +24,13 @@
@destination = value
end
def skip_views?
skip_views
+ end
+
+ def skip_views!
+ self.skip_views = true
end
#
# Return the mapped type for the code generation.
#