Issue a warning to the event log if _table is not specified for a relational mapping
This commit is contained in:
parent
d3d95a8288
commit
2e46e4c121
1 changed files with 5 additions and 0 deletions
|
@ -150,6 +150,11 @@ public final class DbMapping implements Updatable {
|
|||
if (source == null) {
|
||||
app.logEvent ("*** Data Source for prototype "+typename+" does not exist: "+sourceName);
|
||||
app.logEvent ("*** accessing or storing a "+typename+" object will cause an error.");
|
||||
} else if (table == null) {
|
||||
app.logEvent ("*** No table name specified for prototype "+typename);
|
||||
app.logEvent ("*** accessing or storing a "+typename+" object will cause an error.");
|
||||
// mark mapping as invalid by nulling the source field
|
||||
source = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue