【问题标题】:Spring data jpa. Postgres. UUID. Call stored procedure with uuid[] parameter弹簧数据 jpa。邮递员。 UUID。使用 uuid[] 参数调用存储过程
【发布时间】:2021-02-21 12:36:00
【问题描述】:

需要一个示例,如何调用以 postgres uuid[] 数组为参数的存储过程和 spring data jpa。总是得到参数bytea不存在函数的异常。

【问题讨论】:

    标签: spring postgresql stored-procedures spring-data-jpa uuid


    【解决方案1】:

    不确定我是否理解您的问题 - 如果您有字段

        private UUID myfield;
    

    在你的@Entity 中,你可以有一个方法

        findByMyfield(UUID myfield);
    

    在您的 JpaRepository 中。

    正确的映射是另一回事(因为您有一个例外) - 您可以检查 https://bootfy.io 是否可以为您提供运行模式。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-12-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-28
      • 2010-12-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多