-->
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.  [ 1 post ] 
Author Message
 Post subject: Extended create statement
PostPosted: Tue Sep 20, 2011 12:30 pm 
Newbie

Joined: Mon Sep 19, 2011 11:45 am
Posts: 1
Hi,

I am currently involved in working with Hibernate against a upcoming database platform called SQLFire. The problem I have is that SQLFire requires custom entries within the DDL create statements. I have looked in the org.hibernate.mapping.Table and org.hibernate.dialect.Dialect (I have also checked org.hibernate.DerbyDialect which SQLFire impersonates by default) and cannot see any obvious way of extending how the create statements are generated. Can anyone advise if I have missed some way of doing this?

A create statement in this case could look like the following. However there are other entries that might also be needed in some situations.

Code:
CREATE TABLE HOTELAVAILABILITY
( HOTEL_ID INT NOT NULL,
  BOOKING_DATE DATE NOT NULL,
  ROOMS_TAKEN INT DEFAULT 0,
  PRIMARY KEY (HOTEL_ID, BOOKING_DATE)
) PARTITION BY PRIMARY KEY


Thanks in advance,

Jamie


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.