带有JPA2.1和Hibernate的表值参数,Sql Server

时间:2017-08-15 14:37:04

标签: java sql-server hibernate jpa table-valued-parameters

有没有办法在Hibernate中使用表值参数?

https://docs.microsoft.com/en-us/sql/connect/jdbc/using-table-valued-parameters#passing-a-table-valued-parameter-as-a-resultset-object

我正在尝试将表集传递给存储过程,但您不能以这样的方式传递它:

@NamedStoredProcedureQuery(
    name = "deleteDocFromFavorites", 
    procedureName = "sp_del", 
    parameters = { 
            @StoredProcedureParameter(name = "uid", type = MyCustomClass.class, mode = ParameterMode.IN),

    })

知道怎么做到这一点?

0 个答案:

没有答案