3 Replies Latest reply on Oct 28, 2005 1:39 PM by Emmanuel Bernard

    how can I specify SQL for relation?

    silviu.marcu Newbie

      can I specify somehow the query for a relation in an entity bean?

      @Entity
      public class Account {
      <<<<<<<<<< ?????? >>>>>>>>>>
      @ManyToOne(cascade = {CascadeType.PERSIST, CascadeType.MERGE},
      fetch = FetchType.LAZY, targetEntity=Operator.class)
      public Operator getAccountantOperator() {
      return accountantOperator;
      }
      }