How to generate order number in this format ORD000001 in hibernate and spring
<p>How to generate order number in this format ORD000001 in hibernate and spring</p>

<p>Please help me to generate above number.i tried various ways to generate this sequence number but no solution worked well.</p>