-->
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.  [ 3 posts ] 
Author Message
 Post subject: Concatenate id in Hilo algorithm
PostPosted: Fri Nov 11, 2005 3:21 pm 
Beginner
Beginner

Joined: Mon Oct 03, 2005 5:13 pm
Posts: 30
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 me? I´ll really appreciate.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 14, 2005 8:32 am 
Beginner
Beginner

Joined: Mon Oct 03, 2005 5:13 pm
Posts: 30
Please, anybody help? :-)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 16, 2005 3:10 pm 
Beginner
Beginner

Joined: Mon Oct 03, 2005 5:13 pm
Posts: 30
I saw on the documentation that I can add parameters in the xml mapping. For example:

Code:
<id name="id" type="long" column="id">
  <generator class="mypack.MyTableGenerator">
    <param name="table">hi_value</param>
    <param name="column">next_value</param>
    <param name="max_lo">100</param>
  </generator>
</id>

Where can I find a documentation about these params?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.