-->
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: I get a ? mark in my ID field?
PostPosted: Sun Feb 08, 2004 4:36 am 
Beginner
Beginner

Joined: Thu Feb 05, 2004 10:39 pm
Posts: 44
Ok, just persisted my first class today using hibernate by deploying Hibernate as a JBoss service using a MySQL DB. I must say it is so sweet and I think I will replace my CMPs with hibernate in the future. However, I ran into this newbe problem:

I have a class with an ID field using the uuid.string generator and my ID field in the DB get a "?" mark as the value?

Why would this be?

Tried searching the forum but I don't think the search engine does a good job on queriest including a ? mark.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 09, 2004 5:49 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
mapping, small code, please.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 11, 2004 4:06 am 
Beginner
Beginner

Joined: Thu Feb 05, 2004 10:39 pm
Posts: 44
I think the problem was the uuid.string ID generator. In my MySQL db, when the uuid.string generator was working, I was getting some really strange characters like arrows, smiley faces etc. However, most of the time the only value I got for my ID field was one question mark.

Once I changed the generator to uuid.hex, it worked right away. I don't know what experience others have had but I think MySQL, like PostgreSQL, might have some issues with the uuid.string generator.


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.