Ticket #66 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Support copying of mutable objects in generated ValueObjects.

Reported by: amandel Owned by: amandel
Priority: major Milestone: unscheduled
Component: code-generators Version: trunk
Keywords: Cc:

Description

If a mutable object is stored in the value type a copy of an object must normally be stored and also generated when it is retrieved again, to avoid accidental modifications.

It should be possible for the generated ValueObjects? to support this pattern.

There are two common ways to copy objects in java. One is to use the clone method the other is realized through a copy constructor.

To support this a new attribute "copyValue" should be added to the member element. Possible values are clone or constructor. The type used must support the selected copy mechanism.

Change History

Changed 3 years ago by amandel

  • owner changed from jCoderZ to amandel
  • status changed from new to assigned

Changed 3 years ago by amandel

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.