-->
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.  [ 3 posts ] 
Author Message
 Post subject: Some Questions
PostPosted: Thu Jan 12, 2006 5:36 pm 
Newbie

Joined: Thu Jan 12, 2006 5:22 pm
Posts: 6
Hello. I am having some troubles using NHibernate with MySQL. I have an entity named Category with Id and Description. It hapens that NHibernate/MySQL-Provider tries to update a `dbo.Category` table.

However, I cannot create a table with that name in MySQL. What can I do?

And if I try to use SchemaExport to create the DB structure, I get this exception: Can't create/write to file './dbo/Category.frm'. Can anyone help on this?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 13, 2006 3:04 pm 
Senior
Senior

Joined: Fri Jan 13, 2006 2:50 pm
Posts: 123
Location: Blumenau / SC / Brasil
Hello pre, have you checked your NHibernate's configuration?

I use this (web.config):

Code:
  <configSections>
    <section 
         name="nhibernate"
         type="System.Configuration.NameValueSectionHandler, System, 
             Version=1.0.3300.0,Culture=neutral, PublicKeyToken=b77a5c561934e089" />
  </configSections>

  <nhibernate>
    <add
        key="hibernate.connection.provider"
        value="NHibernate.Connection.DriverConnectionProvider"
    />
    <add
        key="hibernate.dialect"
        value="NHibernate.Dialect.MySQLDialect"
    />
    <add
        key="hibernate.connection.driver_class"
        value="NHibernate.Driver.MySqlDataDriver"
    />
    <add
        key="hibernate.connection.connection_string"
        value="Server=xxxx;Database=xxxx;Uid=xxxx;Pwd=xxxx;"
    />
  </nhibernate>


Bye


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 14, 2006 6:28 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
You have a schema="dbo" or default-schema="dbo" in your mappings somewhere, remove it.


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

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.