5 Replies Latest reply on Feb 9, 2006 4:33 PM by Emmanuel Bernard

    Is there any easy way to a create primary key for combined f

    Dan Liu Apprentice

      When I have a unique proerty for my entity, I can simply use @Id to specify it as the primary key. If I want to have a combine primary key(e.g. lastname, firstname), what's the simplest way to do make the primary key. I did a search on google and it seems I have to create another class in order to make a combined primary key. Is this the only way of doing it?