in

The ORM Foundation

Get the facts!

Guid (uniqueidentifier) datatype, column case

Last post 05-21-2008 11:07 by Brian Nalewajek. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 05-16-2008 7:58

    • sensei
    • Top 75 Contributor
    • Joined on 05-12-2008
    • Posts 3

    Guid (uniqueidentifier) datatype, column case

    Hi

     Sorry if this has been asked before

     Just starting to do some minor ORM work with nORMa, previous Visio user.

    I dont care very much for "uniqueifiers" but unfortunetly they are sometimes necessary. Does nORMa support this datatype, I can't find it anywhere.

    Also I have tried to get the DDL generation to produce Capital column names without success, is it possible to change?

     

    Thanks for the great work

    Filed under: , , ,
  • 05-16-2008 21:28 In reply to

    Re: Guid (uniqueidentifier) datatype, column case

    Welcome to NORMA.

    We haven't yet included the UUID datatype, but we should eventually do so. This is a little harder than, say, bigint because not all generation targets support it. Also, we've currently built the autoincrement and identifier notions into a datatype, when in fact the notion of datatype and autogeneration need to be separated. We'll evaluate the cost of adding this next week, hopefully it won't be worse than tinyint (a recent addition).

    To change the column capitalization, open the 'Name Generation Settings' branch in the ORM Model Browser (Ctrl-W, Ctrl-M from the designer, or on the context menu), find the relational branch, then Column Specific. You'll see casing options in the Properties Window. Change it from the default (Camel) to Pascal.

    -Matt

  • 05-21-2008 6:46 In reply to

    • sensei
    • Top 75 Contributor
    • Joined on 05-12-2008
    • Posts 3

    Re: Guid (uniqueidentifier) datatype, column case

    Thanks Matt

     For now it's no big deal to manually change some surrogate datatype to UUID i the DDL.

     Again, thanks for the great effort with nORMa!

  • 05-21-2008 11:07 In reply to

    Re: Guid (uniqueidentifier) datatype, column case

    Hello Sensei,

    I'd think the Numeric Auto Counter type would work well as a surrogate.  You'll have a one-to-one for matching to UUID type, and will have the same (actually theortically better), assurance of uniquness (within the data structure).  That should make the process of coverting to UUID easier.  One thing I'd check on is to see if your target DBMS has an integer to UUID conversion procedure already - and save that bit of work.

    I can see the point of your request for a native UUID type, though; if it's important to the conceptual model to make that distinction - or just to automate the process.

    One thing you get from the nORMa team, is that there are a lot of features they plan to add (or are willing to add on request), but it's just a matter of time.

    BRN..

    Filed under: ,
Page 1 of 1 (4 items)
© 2008-2010 The ORM Foundation: A UK not-for-profit organisation -------------- Terms of Service