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.  [ 2 posts ] 
Author Message
 Post subject: could not load entity - syntax error
PostPosted: Tue Jun 10, 2008 4:17 am 
Beginner
Beginner

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

I use Nhibernate to access databases from C#. During development I worked with MS SQL. I transfered data to FoxPro (similar to dBase or Access) and changed my connection setup.
Everything worked fine with MS SQL. After changing to an OleDb Connection for my foxPro-DB I get an error (could not load entity - syntax error), while executing an hql-query:
"from OrganizationalUnit OrgUnit where OrgUnit.TypeId.TypeId = 'employee'"

What could be the reason that it worked well with one connection and throws errors with another connection?

Thanks in advance antoschka


Top
 Profile  
 
 Post subject: SOLVED:
PostPosted: Tue Jun 10, 2008 9:52 am 
Beginner
Beginner

Joined: Tue Jan 22, 2008 11:33 am
Posts: 46
I solved it by deleting the square brackets from the Column names in the mapping file. Thanks for your effort.



Bye antoschka


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.