[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2535) Change Cache' Cache71Dialect so that sequence support returns false

Steve Ebersole (JIRA) noreply at atlassian.com
Mon Apr 2 11:19:04 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_26616 ] 

Steve Ebersole commented on HHH-2535:
-------------------------------------

The other option is to change the code in schemaupdate.

Regardless, for 3.2.3, I'll change the Cache71Dialect to claim it does not support sequences.

> 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
>    Affects Versions: 3.2.2
>         Environment: Cache' database without sequence support enabled server-side.
>            Reporter: Jay Howell
>            Assignee: Steve Ebersole
>             Fix For: 3.2.3
>
>
> 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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list