-->
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: schema export for oracle XE ?
PostPosted: Wed Jun 24, 2009 4:46 am 
Newbie

Joined: Wed Jun 24, 2009 4:28 am
Posts: 4
I'm trying to generate a schema export from the CaveatEmptor book example for Oracle 10g XE (express edition). But it doesn't work:
org.hibernate.MappingException: Dialect does not support identity key generation
at org.hibernate.dialect.Dialect.getIdentityColumnString(Dialect.java:548)
at org.hibernate.dialect.Dialect.getIdentityColumnString(Dialect.java:538)
at org.hibernate.mapping.Table.sqlCreateString(Table.java:389)

The dialect I'm using is org.hibernate.dialect.Oracle10gDialect.
My current workaround is to export for Hyersonic and edit the exported code by hand accordingly. Are there any best practices to export schemas for oracle or is it possible at all?

TIA
Gernot


Top
 Profile  
 
 Post subject: Re: schema export for oracle XE ?
PostPosted: Mon Jun 29, 2009 10:02 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Don't use identity columns if the database doesn't support it...

_________________
Max
Don't forget to rate


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.