Skip to content

Instantly share code, notes, and snippets.

@gabanox
Created October 16, 2014 13:16
Show Gist options
  • Save gabanox/99e102bdc747da4b4d58 to your computer and use it in GitHub Desktop.
Save gabanox/99e102bdc747da4b4d58 to your computer and use it in GitHub Desktop.
package com.company.app.annotation.procedure;
import java.sql.Types;
import javax.sql.DataSource;
import org.springframework.jdbc.core.SqlParameter;
import org.springframework.jdbc.object.SqlFunction;
public class SfFirstNameById extends SqlFunction<String> {
private static final String SQL = "select getfirstnamebyid(?)";
public SfFirstNameById(DataSource dataSource) {
super(dataSource, SQL);
declareParameter(new SqlParameter(Types.INTEGER));
compile();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment