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

    how can I specify SQL for relation?

      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;
      }
      }