Hi Jonathan,

I am sure that Bill Gates already tried to get the patent for this.

Off topic: What about using the java.rmi.server.UID? It generates a
unique-ID as string.
We have used this in several projects and it worked well for us.
But I know that developers loves their PKs as long or int......

Just my 2 cents

----- Original Message -----
From: <Jonathan.O'[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 06, 2003 1:45 PM
Subject: Re: [JBoss-user] HiLo key generator


> Pardon my ignorance, but what is a HiLo key generator? Many years ago, we
> used an incrementing number, but reversed the bits, so that the keys were
> well distributed. Is this the same thing? Should I have patented the idea
> :-) ? Too late I suppose!
> Ciao,
> Jonathan O'Connor
> Development Manager
> XCOM Dublin
> Phone: +353 1 872 3305
> Mobile: +353 86 824 0736
>
>
>
>
> Alex Loubyansky <[EMAIL PROTECTED]>
> Sent by: [EMAIL PROTECTED]
> 05.03.2003 19:36
> Please respond to jboss-user
>
>
>         To:     JBoss-User <[EMAIL PROTECTED]>
>         cc:
>         Subject:        [JBoss-user] HiLo key generator
>
>
> I just added HiLo key generator to HEAD.
> Now, using entity-command configuration, it's possible to create
> entities with either "known" or unknown primary keys using UUID or
> HiLo key generators.
>
> Key generator is deployed with *-service.xml. Here is an excerpt from
> hilo-service.xml:
>    <!--
>       | HiLoKeyGeneratorFactory
>    -->
>    <mbean
>  code="org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory"
>       name="jboss:service=KeyGeneratorFactory,type=HiLo">
>
>       <attribute
> name="FactoryName">java:/HiLoKeyGeneratorFactory</attribute>
>       <attribute name="DataSource">java:/DefaultDS</attribute>
>       <attribute
> name="TransactionManager">java:/TransactionManager</attribute>
>       <attribute name="TableName">JBOSS_SEQUENCE</attribute>
>       <attribute name="ColumnName">ID</attribute>
>       <attribute name="ColumnSQLType">INTEGER</attribute>
>       <attribute name="BlockSize">100</attribute>
>    </mbean>
>
> If the table does not exist at deployment, it is created.
> Is there a need to backport it to 3.2 and/or 3.0 versions?
>
> Thanks,
> alex
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Etnus, makers of TotalView, The
> debugger
> for complex code. Debugging C/C++ programs can leave you feeling lost and
> disoriented. TotalView can help you find your way. Available on major UNIX
>
> and Linux platforms. Try it free. www.etnus.com
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Etnus, makers of TotalView, The
debugger
> for complex code. Debugging C/C++ programs can leave you feeling lost and
> disoriented. TotalView can help you find your way. Available on major UNIX
> and Linux platforms. Try it free. www.etnus.com
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user

__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Bis zu 100 MB Speicher bei http://premiummail.yahoo.de


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to