0

これがエラーなのか通常の機能なのかはわかりませんが、複数階層を使用した後、MappedSuperclass プロパティが JPA/hibernate によって認識されません。私はそれらのクラスを持っています:

  @MappedSuperclass
  public abstract class AbstractDomain{
    private Integer userId;

    @Column
    public Integer getUserId(){
       return userId;
    }

    public void setUserId(Integer userId){
      this.userId=userId;
    }
  }

   public class Invoice extends AbstractDomain{
   }

  @Entity
  public class InvoiceEntity extends Invoice{

  }

そうですか?

4

0 に答える 0