-->
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.  [ 5 posts ] 
Author Message
 Post subject: hibernate migration (Very urgent!!!!!!!!!!!)
PostPosted: Fri Jan 19, 2007 1:09 am 
Newbie

Joined: Tue Jan 16, 2007 5:58 am
Posts: 7
Hi,

Am migrating my application from hibernate 2.0 to hibernate 3.0. In one of my module named subscriptions, there
are 3 hbm.xml files and i converted the DTD specifications to hibernate 3.0 and when i execute , i am getting this
error. please help me where i do i went wrong....

Here is the error

Unable to instantiate ID Generator class

Here is the XML file

Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping default-cascade="none">
    <class name="com.wamu.dashboard.subscriptions.DashboardEmailRecordAM" table="WAMU_USER">

        <id name="employeeId" type="string" unsaved-value="null">
            <column name="EMPLOYEE_ID" sql-type="varchar(7)" not-null="true" />
            <generator class="uuid.string" />
        </id>

        <property name="emailAddressString" type="string">
            <column name="EMAIL" sql-type="varchar(50)" not-null="false" />
        </property>
       
        <property name="firstName" type="string">
           <column name="FIRST_NAME" sql-type="varchar(30)" not-null="true" />
        </property>
       
        <property name="lastName" type="string">
           <column name="LAST_NAME" sql-type="varchar(30)" not-null="true" />
        </property>
       
        <property name="workPhone" type="string">
           <column name="WORK_PHONE" sql-type="varchar(15)" not-null="false" />
        </property>
       
        <property name="workPhoneExt" type="string">
           <column name="WORK_PHONE_EXTENSION" sql-type="varchar(7)" not-null="false" />
        </property>

      <property name="organizationId" type="string">
         <column name="ORGANIZATION_ID" sql-type="varchar(10)" not-null="false" />
      </property>
    </class>
</hibernate-mapping>



Thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 19, 2007 2:13 am 
Regular
Regular

Joined: Sun Sep 17, 2006 2:48 am
Posts: 81
Location: California
Is it uuid.string or just uuid ?


Top
 Profile  
 
 Post subject: hibernate migration (Very urgent!!!!!!!!!!!)
PostPosted: Fri Jan 19, 2007 2:23 am 
Newbie

Joined: Tue Jan 16, 2007 5:58 am
Posts: 7
somu wrote:
Is it uuid.string or just uuid ?


My uuid is uuid.string.. Its not just uuid...


Top
 Profile  
 
 Post subject: Re: hibernate migration (Very urgent!!!!!!!!!!!)
PostPosted: Fri Jan 19, 2007 2:25 am 
Newbie

Joined: Tue Jan 16, 2007 5:58 am
Posts: 7
hibernatetuckle wrote:
somu wrote:
Is it uuid.string or just uuid ?


Its uuid.string....


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 19, 2007 2:25 am 
Regular
Regular

Joined: Sun Sep 17, 2006 2:48 am
Posts: 81
Location: California
Document says uuid only (I have never used uuid though)


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