-->
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.  [ 3 posts ] 
Author Message
 Post subject: troubles getting identity generator in MySQL to work
PostPosted: Wed Sep 01, 2004 3:48 pm 
Newbie

Joined: Tue Aug 31, 2004 5:04 pm
Posts: 10
Hibernate version: 2
Full stack trace of any exception that occurs:
Hibernate: select hibernate_sequence.nextval from dual
Sep 1, 2004 12:42:20 PM net.sf.hibernate.util.JDBCExceptionReporter logExceptions
WARNING: SQL Error: 1109, SQLState: S1000
Sep 1, 2004 12:42:20 PM net.sf.hibernate.util.JDBCExceptionReporter logExceptions
SEVERE: General error, message from server: "Unknown table 'hibernate_sequence' in field l
ist"
Sep 1, 2004 12:42:20 PM net.sf.hibernate.util.JDBCExceptionReporter logExceptions
WARNING: SQL Error: 1109, SQLState: S1000
Sep 1, 2004 12:42:20 PM net.sf.hibernate.util.JDBCExceptionReporter logExceptions
SEVERE: General error, message from server: "Unknown table 'hibernate_sequence' in field l
ist"
Name and version of the database you are using: MySQL4

I am using MySQL 4 with the driver file from MySQL.com I have the right settings in my application but it seems like it is still trying to use Oracle.

How can I be 100% certain that MySQL is being used?

Also when I do a SchemaExport I do not see Hibernate creating a table called "hibernate_sequence"

Is there anyone that knows that this table looks like. I've searched all over the internet for this tbl structure.

Thanks for your help.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 01, 2004 4:49 pm 
Newbie

Joined: Tue Aug 31, 2004 5:04 pm
Posts: 10
Here is the XML

Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN"
   "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
   <class name="com.oooo.kmf.EntityInstance" table="entity_instance">
      <id name="entityId" column="entity_id">
         <generator class="native" />
      </id>               
      <many-to-one class="com.oooo.kmf.EntityClass" name="entityClass" cascade="all" column="entity_class_id" />
   </class>
</hibernate-mapping>


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 01, 2004 5:19 pm 
Newbie

Joined: Tue Aug 31, 2004 5:04 pm
Posts: 10
Problem solved.

I would delete this but can't edit my post.


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