@Transactional(readOnly = true, rollbackFor = Throwable.class)
private List<Long> getSimpleGid(final Long origin, final Long goal) {
final List<Long> lista = new ArrayList<Long>();
try {
Session currentSession = getSession();
CallableStatement consulta = currentSession.connection()
.prepareCall("{call shortest_path(?,?,?,?,?)}");
consulta.setString(1, "SELECT id, " + source + "::int4, " + target
+ "::int4, " + "ST_length2d(" + the_geom
+ ")::float8 as cost FROM " + table);
consulta.setLong(2, origin);