-->
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 to create message table from the book
PostPosted: Mon Jul 02, 2007 6:02 am 
Newbie

Joined: Fri Apr 13, 2007 2:16 am
Posts: 11
Hi,

When i tried following schema to create "messages" table to execute book hello world example, got error.

Schema i used is
CREATE TABLE ANNOATE.MESSAGES(
MESSAGE_ID BIGINT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
MESSAGE_TEXT CHAR(30),
PRIMARY KEY(MESSAGE_ID),
CONSTRAINT NEXT_MESSAGE_ID FOREIGN KEY (MESSAGE_ID)
REFERENCES ANNOATE.MESSAGES(MESSAGE_ID)
)TYPE=InnoDB;

ANNOTATE is database name in MySQL.
Please correct if there i snay mistake in above schema.
Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 20, 2007 10:30 am 
Newbie

Joined: Mon Jul 09, 2007 8:04 am
Posts: 12
Location: England
I'm new to Hibernate, but your database name is "ANNOTATE" and you're trying to "CREATE TABLE ANNOATE.MESSAGES"?

Typo?

_________________
MG


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.