0 Replies Latest reply on Apr 22, 2014 1:48 AM by masummymesingh

    Generate primary key in database side ?

    masummymesingh

      I  am using EJB3, JPA2, hibernate 4

       

      my requirements is  :

       

      1. Not use Auto Generation in db side   bz  some db backup related facility

      2. high concurrent user use this table for CRUD operation purpose  ?

      3. My primary key column type is : Char/varchar ---String  .

      4. format is : 12 digit ( Year(2) + month (2)+ day(2) + serialNo(6))

       

       

      what is logic of pk generation of this scenario (high concurrency , NO Auto generation in JPA/DB) ????????