Ticket #886 (closed enhancement: fixed)

Opened 8 months ago

Last modified 3 months ago

@Predicate must be present to mark a persisted field. The rest are considered transient.

Reported by: pradeep Assigned to: pradeep
Priority: unassigned Milestone: 0.9.1
Component: topaz Version: 0.8.3-SNAPSHOT
Keywords: Cc:
Blocking: Blocked By:

Description (Last modified by ronald)

This has an interesting side-effect. The writeReplace() in proxies will skip those too. May not be what the app expects.

Dependency Graph

Change History

04/01/08 10:09:09 changed by ronald

  • description changed.

07/31/08 23:21:29 changed by amit

  • blocking changed.
  • blockedby changed.
  • milestone set to 0.9.1.

09/02/08 12:56:45 changed by pradeep

  • owner changed from ronald to pradeep.

09/02/08 13:18:00 changed by pradeep

  • status changed from new to closed.
  • resolution set to fixed.

(In [6374]) Move OTM annotations to getter and setter Methods. The recommended convention is to annotate the setters.

An additional restriction is that all properties that are to be persisted, must have an OTM annotation on its setter (or getter but not both). This closes #886. (Note the side effect mentioned on #886.)

Another side effect is that @Embeddable is no longer required and therefore is eliminated.

No change in @UriPrefix?. This allows annotating setters (or getters) with @Predicate annotation without specifying any predicate-uri. The predicate-uri is computed from the @UriPrefix? as before - but an @Predicate annotation must exist on the setter (or getter).

Also note that both setter and getter must exist for Entity properties. For Views, only setters are mandatory.