wip data tables
This commit is contained in:
+4
-4
@@ -255,10 +255,10 @@ public class ReadWriteNonCoreDataServiceImpl implements
|
|||||||
// id only used for reading a specific entry in a one to many datatable
|
// id only used for reading a specific entry in a one to many datatable
|
||||||
// (when updating)
|
// (when updating)
|
||||||
if (id == null) {
|
if (id == null) {
|
||||||
sql = sql + " from " + datatable + " where " + getFKField(appTable)
|
sql = sql + " from `" + datatable + "` where " + getFKField(appTable)
|
||||||
+ " = " + appTableId;
|
+ " = " + appTableId;
|
||||||
} else {
|
} else {
|
||||||
sql = sql + " from " + datatable + " where id = " + id;
|
sql = sql + " from `" + datatable + "` where id = " + id;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sqlOrder != null)
|
if (sqlOrder != null)
|
||||||
@@ -277,8 +277,8 @@ public class ReadWriteNonCoreDataServiceImpl implements
|
|||||||
private void checkMainResourceExistsWithinScope(String appTable,
|
private void checkMainResourceExistsWithinScope(String appTable,
|
||||||
Long appTableId) {
|
Long appTableId) {
|
||||||
|
|
||||||
String unscopedSql = "select t.id from " + appTable
|
String unscopedSql = "select t.id from `" + appTable
|
||||||
+ " t ${dataScopeCriteria} where t.id = " + appTableId;
|
+ "` t ${dataScopeCriteria} where t.id = " + appTableId;
|
||||||
|
|
||||||
String sql = dataScopedSQL(unscopedSql, appTable);
|
String sql = dataScopedSQL(unscopedSql, appTable);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user