-->
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: Do we use Primary key of table as string type
PostPosted: Tue Aug 23, 2005 2:14 am 
Newbie

Joined: Tue Aug 23, 2005 12:52 am
Posts: 10
Hi

In my project im using string type for my primary key when i try to load object from database im getting some problems.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 23, 2005 2:49 am 
Expert
Expert

Joined: Tue Oct 05, 2004 9:45 am
Posts: 263
wow ... and how do you think we should help you?
Should I guess what the problem is? Should i provide you every solution which exists? (copy & paste the forum?)

Why don't you provide the required information?

gtx
curio


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 23, 2005 3:08 am 
Newbie

Joined: Mon Aug 22, 2005 2:34 pm
Posts: 4
You haven't provided information about your mappings and is difficult to help you. But if you manually generate the key for your strings ids you have to use a assigned generator:
Code:
   
        <id name="id" column="EVENT_ID">
            <generator class="assigned"/>
        </id>


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.