mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-11 12:03:09 +00:00
DS-2248 Ensure that DSpaceObject subclasses create typed TableRows when instantiated.
This commit is contained in:
@@ -42,10 +42,10 @@ import java.util.*;
|
||||
public class Community extends DSpaceObject
|
||||
{
|
||||
/** log4j category */
|
||||
private static Logger log = Logger.getLogger(Community.class);
|
||||
private static final Logger log = Logger.getLogger(Community.class);
|
||||
|
||||
/** The table row corresponding to this item */
|
||||
private TableRow communityRow;
|
||||
private final TableRow communityRow;
|
||||
|
||||
/** The logo bitstream */
|
||||
private Bitstream logo;
|
||||
@@ -76,6 +76,11 @@ public class Community extends DSpaceObject
|
||||
Community(Context context, TableRow row) throws SQLException
|
||||
{
|
||||
super(context);
|
||||
|
||||
// Ensure that my TableRow is typed.
|
||||
if (null == row.getTable())
|
||||
row.setTable("community");
|
||||
|
||||
communityRow = row;
|
||||
|
||||
// Get the logo bitstream
|
||||
|
Reference in New Issue
Block a user