I want to implement my own strategy for generating primary keys for new rows in my table, for example I want that the id of a host will 172.24.85.20 will be 8520.

Can I somehow extend @GeneratedValue annotation? which approach will you recommend?