-->
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: implementation of MysqlDialect.getSchemaSeperator() ignored
PostPosted: Sat Nov 13, 2004 2:48 am 
Newbie

Joined: Sat Nov 13, 2004 2:33 am
Posts: 3
Hibernate version: 2.1.6

It appears that after updating to 2.1.6 my own implementation of MysqlDialect is ignored.

Here is the code:
import net.sf.hibernate.util.StringHelper;

public class MyMySQLDialect extends net.sf.hibernate.dialect.MySQLDialect {
public char getSchemaSeperator()
{
//return '.'; //makes no difference
return StringHelper.DOT;
}
}

I have specified the MyMySQLDialect in the hibernate.cfg.xml but:

SessionFactoryImpl sessionFactoryImpl = (SessionFactoryImpl)sessionFactory;
System.out.println("Dialect: " + HibernateUtils.getSQLDialect().getClass().toString());
System.out.println("Seperator: >" + HibernateUtils.getSQLDialect().getSchemaSeparator() + "<");

yields:
Dialect: class org.kinasenet.hibernate.MyMySQLDialect
Seperator: >_<


Question: why does getSchemaSeperator() not return a dot.
Nevermind any discussion on what the canonical view on mysql's schema capabilities is - I require the databases represented as schemas.

Thanks for any help/h


Top
 Profile  
 
 Post subject: implementation of MysqlDialect.getSchemaSeperator() ignored
PostPosted: Sat Nov 13, 2004 3:08 am 
Newbie

Joined: Sat Nov 13, 2004 2:33 am
Posts: 3
Nevermind, I could swear it used to be:
getSchemaSeperator()
but a quick check reveals it should be:
getSchemaSeparator()

now everything works as planned.

Sorry for the bother/h


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.