-->
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: Using unsigned bigint for mysql sequence
PostPosted: Tue Feb 02, 2016 1:25 pm 
Newbie

Joined: Tue Nov 24, 2015 3:52 pm
Posts: 12
Hi,

I'm using an auto strategy for generating my entity IDs. But I want to make sure the ids generated are positive. So I tried to specify BIGINT UNSIGNED as a SQL column type using @Column(columnDefinition=...
Is it the good approach ?
I've tried this :
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(columnDefinition="BIGINT UNSIGNED")
private Long id;

But it changes nothing in my create.ddl file:
create table hibernate_sequence ( next_val bigint )

Thanks for your help


Top
 Profile  
 
 Post subject: Re: Using unsigned bigint for mysql sequence
PostPosted: Thu Feb 04, 2016 2:53 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
You should write a test case to replicate the issue and open a JIRA ticket for this.


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.