IDEMPIERE-2699 Performance: Constant visits to database for MTable not cached
This commit is contained in:
parent
2998c976ac
commit
35f0b830a0
|
@ -48,7 +48,7 @@ public class MColumn extends X_AD_Column
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -4372212315789445915L;
|
||||
private static final long serialVersionUID = -7470893214933465732L;
|
||||
|
||||
/**
|
||||
* Get MColumn from Cache
|
||||
|
@ -830,4 +830,10 @@ public class MColumn extends X_AD_Column
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public I_AD_Table getAD_Table() throws RuntimeException {
|
||||
MTable table = MTable.get(getCtx(), getAD_Table_ID());
|
||||
return table;
|
||||
}
|
||||
|
||||
} // MColumn
|
||||
|
|
|
@ -25,7 +25,7 @@ public class MRefTable extends X_AD_Ref_Table
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 9123965213307214868L;
|
||||
private static final long serialVersionUID = 380648726485603193L;
|
||||
|
||||
/**
|
||||
* Standard Constructor
|
||||
|
@ -57,4 +57,10 @@ public class MRefTable extends X_AD_Ref_Table
|
|||
super (ctx, rs, trxName);
|
||||
} // MRefTable
|
||||
|
||||
@Override
|
||||
public I_AD_Table getAD_Table() throws RuntimeException {
|
||||
MTable table = MTable.get(getCtx(), getAD_Table_ID());
|
||||
return table;
|
||||
}
|
||||
|
||||
} // MRefTable
|
||||
|
|
Loading…
Reference in New Issue