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.  [ 6 posts ] 
Author Message
 Post subject: Hypersonic dialect
PostPosted: Wed Aug 04, 2004 10:58 am 
Newbie

Joined: Wed May 05, 2004 9:48 am
Posts: 8
Hi,

I am using Hibernate 2.1.3 with Hypersonic. When I want to use sequences as ID generator hibernate tells me:

et.sf.hibernate.MappingException: Dialect does not support sequences
but in documentation to Hypersonic they say they have sequences.

What can be wrong ? Is Hibernate not updated for this feature of Hypersonic ?

The mapping file where exception occures is:


<hibernate-mapping>
<class
name="HotList"
table="hotlist"
dynamic-update="false"
dynamic-insert="false"
>
<cache usage="read-only" />

<id
name="id"
column="hotId"
type="java.lang.Long"
unsaved-value="null"
>
<generator class="sequence">
<param name="sequence">hotlist_sequence</param>
</generator>
</id>

<property
name="maxLength"
type="int"
update="true"
insert="true"
access="property"
column="hotMaxLen"
/>
...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 04, 2004 7:42 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
The dialect currently supports identity columns.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 04, 2004 7:44 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
If the database feature set has changed - then we need to know when, version numbers a reference to the page that has the information etc.
Alternatively, you could create or extend the current dialect and provide an appropriate patch.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 05, 2004 1:38 am 
Newbie

Joined: Wed May 05, 2004 9:48 am
Posts: 8
If you unpack latest version HSQLDB 1.7.2 and go to


/doc/guide/guide.html#N104BA

there it is. Is there any chance that hibernate team will do the patch soon ? :)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 05, 2004 6:26 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Why don't you patch it yourself? Should not be too difficult.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 05, 2004 10:43 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I think in this case we need two dialects covering the feature changes.
It would be a relatively simple job to create a new dialect for the later version. Community help and contributions are always appreciated.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.