-->
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: Hibernate Upgrade - GUID Deprecated
PostPosted: Tue Oct 11, 2011 4:32 pm 
Newbie

Joined: Mon Mar 14, 2011 4:18 pm
Posts: 4
Apologies for the stupid question. I recently upgraded from version 3.3.1 to 3.6.5 and when I start up my server I get the following warning:

WARN GUIDGenerator - DEPRECATED : use org.hibernate.id.UUIDGenerator instead with custom org.hibernate.id.UUIDGenerationStrategy implementation

The warning is a bit confusing since at no point do I or any of my code impelement or use any sort of Generator or GenerationStrategy. That is all done by hibernate. All I do is use the <generator> element and tell it to use guid. Below is an example of what I use:

Code:
<id name="exampleId" column="example_id">
    <generator class="guid"/>
</id>

So my question is, what is the replacement that I stick in the <generator> element that makes this warning go away? I want to play nice with hibernate so I figured I would ask.

Here are the particulars:

DB: MySQL 5.1
Hibernate 3.6.5.GA
JDK: 1.6

Thanks!


Top
 Profile  
 
 Post subject: Re: Hibernate Upgrade - GUID Deprecated
PostPosted: Thu Oct 13, 2011 11:00 am 
Newbie

Joined: Mon Mar 14, 2011 4:18 pm
Posts: 4
Any help would be greatly appreciated. Thanks.


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.