Reputation: 551
Is there a way of using Table-Valued Parameter with Hibernate ?
I'm trying to pass a Table set to a Store Procedure, but you can't just pass it in such a way:
@NamedStoredProcedureQuery(
name = "deleteDocFromFavorites",
procedureName = "sp_del",
parameters = {
@StoredProcedureParameter(name = "uid", type = MyCustomClass.class, mode = ParameterMode.IN),
})
Any idea how to achieve this ?
Upvotes: 6
Views: 567