in

The ORM Foundation

Get the facts!

Spanning Role Value Constraint

Last post 03-26-2014 14:18 by Terry Halpin. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-26-2014 7:31

    Spanning Role Value Constraint

    May a value constraint span multiple roles in ORM?  Examples in the "Big Brown Book" seem to cover only one role.  Consider the below example.  If the example constraint is invalid, might an alternative be to objectify the spanned roles and then apply a value constraint to the objectified type?

    Best,
    Matt 

     


  • 03-26-2014 14:18 In reply to

    Re: Spanning Role Value Constraint

     Currently, role value constraints apply only to single roles. Objectification can be a solution in some cases, but is not advisable in your example since there is no uniqueness constraint over the (A,B) role pair.

    If you have a real world example where you wish to apply a value constraint matching the pattern you show, please provide it and we will consider whether to extend our value constraint support for such cases. 

    Cheers

    Terry 

Page 1 of 1 (2 items)
© 2008-2014 The ORM Foundation: A UK not-for-profit organisation -------------- Terms of Service