-->
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: Schema not supported for MsSqlCeDialect
PostPosted: Thu Feb 15, 2007 10:33 pm 
Senior
Senior

Joined: Sat Sep 10, 2005 3:46 pm
Posts: 178
I have some mapping files that specify a schema in the hibernate-mapping element. I mainly do this because I have to do a cross database join in the production environment.

I am currently trying to configure SQL Ce for my unit tests. Everything seems to be working fine except for a problem with the schema attribute in the mapping files. If I remove the schema attribute everything works perfectly fine.

Im getting this exception from the SchemaExport class:

Code:
NHibernate.HibernateException: The table name is not valid. [ Token line number (if known) = 1,Token line offset (if known) = 23,Table name = dbo ] --->  System.Data.SqlServerCe.SqlCeException: The table name is not valid. [ Token line number (if known) = 1,Token line offset (if known) = 23,Table name = dbo ].


Here are the messages from the log file:
Code:
- create table Customer.dbo.Queue (intQueueID INT IDENTITY NOT NULL,
   intQueueStatusId INT not null,
   intProductId INT not null,
   intAccountId INT null,
   primary key (intQueueID)
)
- Unsuccessful: create table Customer.dbo.Queue (intQueueID INT IDENTITY NOT NULL, intQueueStatusId INT not null, intProductId INT not null, intAccountId INT null, primary key (intQueueID))


Since SQL CE doesnt support the the schema prefix, is there anyway we can just ignore it for the MsSqlCeDialect? Or is ignoring the schema much more complicated than modifying the dialect?

Thanks.


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.