我有一个oracle数据库,我试图通过Java play访问它。这是我的模特课。
@Entity(name = "CUSTOMER")
public class Customer extends Model {
@Id
@Constraints.Min(4)
public Long customerId;
@Constraints.Required
public String customerCode;
@Constraints.Required
public String customerTitle;
public static Finder<Long, Customer> find = new Finder<Long, Customer>(Long.class, Customer.class);
}
我试着像下面一样测试它,
// Find all customers
List<Customer> tasks = Customer.find.all();
当我执行此操作时,我得到了,
SQLSyntaxErrorException:ORA-00942:表或视图不存在
我该如何解决这个问题?