-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: problem with generator class="guid"
PostPosted: Wed Feb 20, 2008 4:04 pm 
Beginner
Beginner

Joined: Tue Jan 22, 2008 11:33 am
Posts: 46
Hi,

I tried a mapping of one single table on different Databases. The key column is suppused to be of generator class="guid".

With MS SQL I do not have any problems. Using the OLE DB driver for FoxPro it throws an exception telling me that the column will not accept null values.
No changes in coding - I just mapped in app.config to a different database.

Here the file:


Code:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section
      name="nhibernate"
      type="System.Configuration.NameValueSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
     
    />
  </configSections>
  <!--MS SQL Connection-->
  <connectionStrings>
    <add name="DOCexpert.Anwenderstammdaten.Explorer.Properties.Settings.ForDBConnectionTestConnectionString"
      connectionString="Data Source=TORSTEN\SQLEXPRESS;Initial Catalog=ForDBConnectionTest;Integrated Security=True"
      providerName="System.Data.SqlClient" />
    </connectionStrings>
  <nhibernate>
    <add
      key="hibernate.connection.provider"
      value="NHibernate.Connection.DriverConnectionProvider"
    />
    <add
      key="hibernate.dialect"
      value="NHibernate.Dialect.MsSql2000Dialect"
    />
    <add
      key="hibernate.connection.driver_class"
      value="NHibernate.Driver.SqlClientDriver"
    />
    <add
      key="hibernate.connection.connection_string"
      value="Server=.\SQLEXPRESS;initial catalog=ForDBConnectionTest;Integrated Security=SSPI"
    />
  </nhibernate>
 
 
  <!--FOXPRO Connection-->
  <!--<connectionStrings>
    <add name="DOCexpert.Anwenderstammdaten.Explorer.Properties.Settings.ForDBConnectionTestConnectionString"
      connectionString="Provider=vfpoledb.1;Data Source=C:\Dokumente und Einstellungen\All Users\Dokumente\Visual FoxPro Projects\ForDBConnectionTest.dbc;Collating Sequence=machine;"
      providerName="System.Data.OleDb"/>

  </connectionStrings>
  <nhibernate>

    <add
      key="hibernate.connection.provider"
      value="NHibernate.Connection.DriverConnectionProvider"
    />
    <add
      key="hibernate.dialect"
      value="NHibernate.JetDriver.JetDialect, NHibernate.JetDriver"
    />
    <add
      key="hibernate.connection.driver_class"
      value="NHibernate.JetDriver.JetDriver, NHibernate.JetDriver"
    />
    <add
      key="hibernate.connection.connection_string"
      value=" Provider=vfpoledb.1;Data Source=C:\Dokumente und Einstellungen\All Users\Dokumente\Visual FoxPro Projects\ForDBConnectionTest.dbc; Collating Sequence=machine;"
    />
   
  </nhibernate>-->
    <!--value="Provider=vfpoledb.1;Data Source=C:\Dokumente und Einstellungen\All Users\Dokumente\Visual FoxPro Projects\Anwenderstammdaten\AnwenderstammdatenV2.dbc;Collating Sequence=machine;"-->
</configuration>



What could cause the problem? Any idea how to make work around so I can run that also on foxpro?

thanks antoschka


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.