Skip to content
Snippets Groups Projects
Commit 6046b1e1 authored by Adam Laskowski's avatar Adam Laskowski
Browse files

SSDM-13524: Added database migration scripts, code cleanup

parent 66d64ac8
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
......@@ -61,20 +61,6 @@ public class LongArrayType implements UserType
.map(Object::toString)
.map(Long::parseLong)
.toArray(Long[]::new);
//Math.toIntExact()
// String content = rs.getString(names[0]);
// content = content.substring(1, content.length() - 1);
// return Arrays.stream(content.split(",")).map(Long::parseLong).toArray();
// PGobject[] values = (PGobject[]) array.getArray();
// List<Long> arr = new ArrayList<>();
// for(PGobject pGobject : values) {
// Long l = Long.parseLong(pGobject.getValue());
// arr.add(l);
// }
// return arr.toArray(new Long[0]);
}
return null;
}
......@@ -86,10 +72,6 @@ public class LongArrayType implements UserType
throws HibernateException, SQLException {
if (value != null && st != null) {
st.setObject( index, value );
// WORKS
// Connection connection = session.connection();
// Array array = connection.createArrayOf("long_value", (Long[])value);
// st.setArray(index, array);
} else {
st.setNull(index, sqlTypes()[0]);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment