-->
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.  [ 4 posts ] 
Author Message
 Post subject: MSAccess dialect???
PostPosted: Sun Jul 25, 2004 11:20 pm 
Beginner
Beginner

Joined: Sun Jul 25, 2004 11:15 pm
Posts: 24
Hi all:
I was trying to run the Hibernate Toolset example at the end of this page:
http://www.hibernate.org/159.html

recreated the database as an MSAccess database, with the three tables ITEM,
BID and USER
i used the generic dialect and tried to run the query:
select user from User as user

i go the following error:


1 errors occurred while listing (and calling getPathNames).
Could not execute query: com.inzoom.adojni.ComException: The SELECT
statement includes a reserved word or an argument name that is misspelled or
missing, or the punctuation is incorrect. in Microsoft JET Database Engine
code=3092 Type=1 Query: select user0_.USER_ID as USER_ID, user0_.HANDLE as
HANDLE, user0_.NAME as NAME, user0_.PASSWORD as PASSWORD from USER user0_
The SELECT statement includes a reserved word or an argument name that is
misspelled or missing, or the punctuation is incorrect.


my questions are:
1) where did the user0_ come from?
2) is there a dialect for MSAccess? or has anyone written one and willing to
share it?

thanks
hilz


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 09, 2005 2:07 pm 
Newbie

Joined: Sun Oct 09, 2005 1:44 pm
Posts: 2
Location: Montréal
Hi,

Quote:
1) where did the user0_ come from?

hibernate create the suffix : 0_
after all sql query. Thats normal behavior

Quote:
2) is there a dialect for MSAccess? or has anyone written one and willing to
share it?


Better try the SQLServerDialect, it should work for simple testing.
I saw a MSAccess dialect made by a user yesterday, but can't find the link right now.

I'll post here if I find it.

Cheers.

Stéphane


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 09, 2005 2:31 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
'user' is a reserved word in sql server , not sure about access.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 09, 2005 2:50 pm 
Beginner
Beginner

Joined: Sun Jul 25, 2004 11:15 pm
Posts: 24
sarcos wrote:
I saw a MSAccess dialect made by a user yesterday, but can't find the link right now.

I'll post here if I find it.



Wow...I totally forgot about this post! It's been over year since i posted it!
Anyway...I would still love to get hold of this dialect if it existed.

I tried a quick search just now, and still can't find anything.

If you do find it, PLEASE post here!

thanks a lot


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.