Menu

Using Guids for OidValue

2004-02-01
2004-02-02
  • Elliot Gage

    Elliot Gage - 2004-02-01

    I have scoured the source and examples to see how to use Guids instead of high low integers for OidValue.

    Before I get crazy and create a new COIDFactory, is there something I am missing to use Guids as the oid?

     
    • Elliot Gage

      Elliot Gage - 2004-02-01

      DOH!
      Well, at least it wasn't a rtfm issue.

      <a href = "https://sourceforge.net/mailarchive/forum.php?thread_id=3790311&forum_id=23841">Answer Here</a>

       
      • Richard Banks

        Richard Banks - 2004-02-01

        So I'm guessing that you've got it working now :-)

         
        • Elliot Gage

          Elliot Gage - 2004-02-01

          Heh, funny that you should mention it.
          I am getting a Datatype mismatch in criteria expression.

          This is with the stock FrameworkSample.

          Application is finding the database fine.
          Have you tested the latest code against the Framework sample?

          I may still consider modifying the getOIDFactoryInstance to support more than just the COIDFactory; use an appropriate factory for either highlow or guids, based on the configuration file. That way the consumer can reference a single field for a persistent object reguardless of whether is a guid or not.

           
    • Richard Banks

      Richard Banks - 2004-02-02

      Oh, bugger!

      My lax testing bites me again :-(

      I've fixed the problem (I assumed .NET would convert system types back to their proper native SQL types in parameters, but I was wrong).

      You can get the fixes in CVS or download 0.1.4 again (I've refreshed the files).

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.