【问题标题】:how to solve the method save(S) in the type CrudRepository<FinancialTransaction,String> is not applicable for the arguments (Payment)如何解决 CrudRepository<FinancialTransaction,String> 类型中的方法 save(S) 不适用于参数(付款)
【发布时间】:2019-11-26 11:49:56
【问题描述】:

我正在尝试保存金融交易中的付款数据,但它给了我这个错误 CrudRepository 类型中的方法 save(S) 不适用于参数 (Payment) 请给我这个问题的快速解决方案。

【问题讨论】:

标签: java spring-boot


【解决方案1】:

这是不可能的。 FinancialTransaction 存储库只能在 Financial_transaction 表中进行操作。

如果您在保存金融交易的同时尝试保存付款。

请在这两个实体之间做one-to-one or one-many的映射。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-05-25
    • 2011-12-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多