The ORM Foundation

Get the facts!

Search

Page 1 of 10 (100 items) 1 2 3 4 5 Next > ... Last »
  • Re: Feature request: Generate Insert Statements from Sample Population

    Hi Katya Thanks for the sugegstion to generate a sample database from the sample data in an ORM model.  This has been on our list of to-dos for quite some time. In addition, we plan to let you enter counterexamples, and use that to automatically generate tests to check whether the relevant constraints are mapped correctly to the ...
  • Re: How can I enter counter-examples? Display of sample data in diagram possible?

    Good questions, Ralf. Support for counterexamples, including automatic generation of test cases, is something that we've planned for years, but unfortunately we still haven't got around to implementing it. Hopefully we will do that in that not too distant future. Although you can't display fact tables on the diagram page like in ...
  • Re: Semantics of subtyping value types

    Hi Clifford Though rarely encountered, I think it's OK for a value type that is a subtype of another value type to have a "more restrictive data type", in the sense used in the following example, but not an incompatible data type.  Consider ISO2CountryCode as a subtype of ISOCountryCode, where the former permits only ...
    Posted to Conceptual modeling (Forum) by Terry Halpin on 06-02-2011
  • Re: Semantics of subtyping value types

    I just spotted a typo in my previous post. Please replace    the character string 'u" by   the character string "us" Cheers  Terry
    Posted to Conceptual modeling (Forum) by Terry Halpin on 06-02-2011
  • Re: Semantics of subtyping value types

    Here's a simple, concrete example that will hopefully clarify the distinction between value types and data types in ORM, at least from my perspective.  Suppose we declare two value types CountryCode and Pronoun to store instances of pronouns and country codes respectively, and assign each of these a ...
    Posted to Conceptual modeling (Forum) by Terry Halpin on 06-02-2011
  • Re: Representing common consistency constraints

    Hi Roger The constraints you need are called join-subset constraints. These are discussed in Section 10.1 of "The Big Brown Book". I've tried to attach a diagram for the "Employee works in Building" example, but it doesn't appear in my Post window. If you can see the diagram, then notice that ...
    Posted to User experience (Forum) by Terry Halpin on 04-25-2011
  • Re: How to represent a singleton value?

    Hi Clifford That's a neat trick, and it will work so long as (a) the CPI Authority itself is immutable, and (b) you know the CPI Authority. If either of those assumptions doesn't hold, then you are going to need a cardinality constraint. I'd prefer to add support for cardinality constraints in the relevant ORM tool, as I think ...
    Posted to User experience (Forum) by Terry Halpin on 04-21-2011
  • Re: How to represent a singleton value?

    Hi Clifford, that alternative won't work for the example posed because the value may change over time. The cardinality constraint does the job because it simply restricts the cardinality for the population (which may vary over time), not the type. Of course, you could use a value constraint if you were willing to change the constraint ...
    Posted to User experience (Forum) by Terry Halpin on 04-21-2011
  • Re: How to represent a singleton value?

    Here are suggested verbalizations for the object cardinality constraint examples on p. 289, Fig. 22: (a)    The number of instances in the population of JuryMember is 12. (b)    The number of instances in the population of Senator is less than or equal to 100. Here is a suggested, ...
    Posted to User experience (Forum) by Terry Halpin on 04-20-2011
  • Re: How to represent a singleton value?

    ORM includes an Object Cardinality Constraint for this purpose (in this case, use # <= 1), as discussed on p. 289 of the "Big Brown Book". Unfortunately, we have not yet added support for this kind of constraint to NORMA. Until we do add this support, I suggest you add the constraint in a model note, and code the constraint ...
    Posted to User experience (Forum) by Terry Halpin on 04-20-2011
Page 1 of 10 (100 items) 1 2 3 4 5 Next > ... Last »
© 2008-2013 The ORM Foundation: A UK not-for-profit organisation -------------- Terms of Service