mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-16 06:23:10 +00:00
DS-2248 Ensure that DSpaceObject subclasses create typed TableRows when instantiated.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user