0 Replies Latest reply on Jun 19, 2008 5:02 AM by donver

    Composite Primary Key

    donver

      I've the follow situation and i don't know hot to resolve it, can anyone suggest me how to resolve it?

      I've an absolute id for the entity bean that i use for all relation and operation on the object but i also have another unique key:
      year, month, prog.
      Prog is an absolute id within the month and it restart from 1 when month change and so on when change year. these value are automatic and the user can't change it.
      How can i implement this situation correctly without problems with concurrency and so on?