【问题标题】:How to pass object to postgres如何将对象传递给postgres
【发布时间】:2016-06-24 09:40:40
【问题描述】:

我使用 postgres 作为我的数据库,我想将对象发送到 Postgres。我正在使用

simpleJdbcCall.withCatalogName(datasourceCatalogName).execute(in);

变量 inmap<String, Object> 但我不知道如何在 Postgres 中使用该对象的字段。 我浏览了一些链接,但它们都指定将数组传递给 Postgres。

【问题讨论】:

    标签: java database postgresql postgresql-9.1


    【解决方案1】:

    我不确定我是否理解这个问题,但您可以从 java 传递给 postgres 序列化对象。 https://docs.oracle.com/javase/tutorial/jndi/objects/serial.html

    【讨论】:

      猜你喜欢
      • 2011-06-12
      • 2011-12-28
      • 2013-07-13
      • 2023-03-06
      • 2012-01-30
      • 2015-10-06
      • 2013-06-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多