1 Reply Latest reply on Feb 7, 2006 12:26 PM by Alexander Langer

    Composite keys of foreign keys

    Paulo camargo Newbie

      Hello Everybody !!

      Please, I need to do an Entity with composite keys of foreign keys.

      Example:

      public class Article implements Serializable {
      int articleId;
      Author authorId;
      String articleDescription;

      @Id
      public int getArticleId() {...}

      @Id
      public Author getArticleId() {...}
      ...
      }

      Is it possible ?
      How can I do it ?

      thanks !
      Paulo