Change Cache' Cache71Dialect so that sequence support returns false
-------------------------------------------------------------------
Key: HHH-2535
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2535
Project: Hibernate3
Issue Type: Improvement
Components: core
Reporter: Jay Howell
We don't want the naive Cache' user to have to load our sequence support XML. This
is okay for advanced users but we want Hibernate to work out of the box for the naive
user.
This requires changing Cache71Dialect so that
public boolean supportsSequences() {
return false;
}
This problem was uncovered at a Java conference where there were many questions about
getting Cache' to work with Hibernate. The developer at that conference discovered
that the Hibernate tool SchemaUpdate required the developer to load our sequence support
XML into a namespace to use SchemaUpdate at all. In other words, SchemaUpdate insists on
sequence support if
public boolean supportsSequences() {
return true;
}
Since we don't want naive Cache' users to run into this problem, it should be
changed to
public boolean supportsSequences() {
return false;
}
The sophisticated Hibernate and Cache' user can do the following:
public class CacheSeqDialect extends Cache71Dialect {
public boolean supportsSequences() {
return true;
}
}
They can follow our instructions for enabling sequence support and then use a
CacheSeqDialect as above that they define to enable sequence support.
It is better that the advanced user be a little bit inconvenienced then the naive user
have trouble working with Hibernate and Cache'. This is the reason we would like the
above change made to the Cache71Dialect.
Jonathan Levinson (developer of Cache71Dialect)
Senior Software Developer
Object Group
InterSystems
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira