-->
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: Latest Hibernate 3.1: Dialect.getSchemaSeparator() gone?
PostPosted: Tue Dec 13, 2005 1:26 pm 
Beginner
Beginner

Joined: Tue Nov 15, 2005 6:56 pm
Posts: 39
Using Hibernate 3.1

I'm migrating our code to the latest Hibernate 3.1. I believe our old code was using Hibernate 3.0 code (not 2.* definitely).

I'm getting this error when compiling:

Code:
cannot find symbol
    [javac] symbol  : method getSchemaSeparator()
    [javac] location: class org.hibernate.dialect.Dialect


It occurs in a file derived from PersistentIdentifierGenerator at this line:

Code:
procName = Table.qualify(catalogName, schemaName, procName, dialect.getSchemaSeparator() );


Apparently the Hibernate version we were using before had a Dialect class that had the function getSchemaSeperator() but the newest 3.1 version doesn't seem to support it. Is there an equivalent method hiding somewhere or some other way to accomplish this?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 09, 2006 6:08 pm 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
I just ran into the same problem. Strange how a public API could just disappear like that. It was in 3.1 RC1. Now, I'm using 3.2.0CR2 and it's not.

It probably wouldn't be much of a problem, except that I'm using SchemaExport to generate my database schema in a MySQL database, it's not setting the separator correctly. I used to use '_' as the separator character. Now, it's using '.' and as far as I know, that's not correct. If you use a '.', it treats what's to the left of the '.' as the name of the database, not a schema name.


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.