DS-2248 Ensure that DSpaceObject subclasses create typed TableRows when instantiated.

This commit is contained in:
Mark H. Wood
2014-11-19 17:11:57 -05:00
parent 257dfe544d
commit bca1b2cf0e
6 changed files with 37 additions and 7 deletions

View File

@@ -77,6 +77,11 @@ public class EPerson extends DSpaceObject
*/
EPerson(Context context, TableRow row) throws SQLException {
super(context);
// Ensure that my TableRow is typed.
if (null == row.getTable())
row.setTable("eperson");
myRow = row;
// Cache ourselves