Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

hilo

Hibernate, @SequenceGenerator and allocationSize

November 30, 2022 by Tarik

To be absolutely clear… what you describe does not conflict with the spec in any way. The spec talks about the values Hibernate assigns to your entities, not the values actually stored in the database sequence. However, there is the option to get the behavior you are looking for. First see my reply on Is … Read more

Categories java Tags hibernate, hilo, java, jpa Leave a comment

What’s the Hi/Lo algorithm?

September 14, 2022 by Tarik

The basic idea is that you have two numbers to make up a primary key- a “high” number and a “low” number. A client can basically increment the “high” sequence, knowing that it can then safely generate keys from the entire range of the previous “high” value with the variety of “low” values. For instance, … Read more

Categories database Tags algorithm, database, hilo, identifier, primary-key Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa