Implement alphanumeric unique field with prefix (hibernate - spring boot)
up vote
0
down vote
favorite
I need something like this.
How to implement IdentifierGenerator with PREFIX and separate Sequence for each entity
I can do uniqueness check in Java
side but hibernate
can check with that kind of generators. So i can use custom sequence.
My field is not id
, it is 6 alphanumeric characters + two characters prefix.
So, what can i implement?
java spring-boot
add a comment |
up vote
0
down vote
favorite
I need something like this.
How to implement IdentifierGenerator with PREFIX and separate Sequence for each entity
I can do uniqueness check in Java
side but hibernate
can check with that kind of generators. So i can use custom sequence.
My field is not id
, it is 6 alphanumeric characters + two characters prefix.
So, what can i implement?
java spring-boot
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I need something like this.
How to implement IdentifierGenerator with PREFIX and separate Sequence for each entity
I can do uniqueness check in Java
side but hibernate
can check with that kind of generators. So i can use custom sequence.
My field is not id
, it is 6 alphanumeric characters + two characters prefix.
So, what can i implement?
java spring-boot
I need something like this.
How to implement IdentifierGenerator with PREFIX and separate Sequence for each entity
I can do uniqueness check in Java
side but hibernate
can check with that kind of generators. So i can use custom sequence.
My field is not id
, it is 6 alphanumeric characters + two characters prefix.
So, what can i implement?
java spring-boot
java spring-boot
asked Nov 10 at 23:19
vegan
167
167
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53244374%2fimplement-alphanumeric-unique-field-with-prefix-hibernate-spring-boot%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown