algorithm « Map « JPA Q&A





1. What's the Hi/Lo algorithm?    stackoverflow.com

What's the Hi/Lo algorithm? I've found this in the NHibernate documentation (it's one method to generate unique keys, section 5.1.4.2), but I haven't found any good explanation of how does ...

2. How to set an inital value for hilo algorithm    forum.hibernate.org

Hi All, I have an application that one of the entities' id was defined as 'native': Code: now, I would like to change the generator to use hilo algorithm: Code: ...

3. Using HILO algorithm from PL/SQL and hibernate    forum.hibernate.org

4. HiLo algorithm    forum.hibernate.org

I've been trying out the HiLo algorithm for generating my ids and I see a problem on the horizon if I use MySQL. Because the HiLo algorithm uses one column per required id ( therefore per table ) if I have more than 255 tables that require generated ids the hilo table will not work because of MySQLs limit of 255 ...

5. HILO algorithm advice needed    forum.hibernate.org

Hi, I have started using hibernate recently. Iam trying to use the HILO algorithm for generating the primary key. I think to use this algorithm we need separate tables for each persistence class that we have. Is there some strategy using which we can store primary keys for each entities in different columns in the same table rather than different tables. ...

6. Concatenate id in Hilo algorithm    forum.hibernate.org

Hello everybody. I ve learned how the hilo algorithm works. In 2 bytes, the hi is specificated, with other 2 bytes of the lo. I want to concatenate a number, of my choice, with this. For example: My number(4 bytes) HI(2 bytes) LO(2 bytes) [1] [1] [1] [1] [1] [2] [1] [2] [33576] I want something like this. Anyone can help ...

7. Hilo Algorithm    forum.hibernate.org

Hi All, This is my first posting. We are using Hibernate 3 ,Spring 2 and Mysql 5. The problem is for Id generator we are using hilo algorithm and the primary key generated is very high, the id is not in sequence it keeps on jumping high. the ids are as high as 8 digits. For ex: 26568934,26768934,26968934 these numbers keep ...

8. Hilo Algorithm    forum.hibernate.org