public class ComputedColumnsTest extends OBBaseTest
DOLLAR, DOLLAR_ID, EURO, EURO_ID, QA_TEST_ADMIN_USER_ID, QA_TEST_CLIENT_ID, QA_TEST_ORG_ID, TEST_BP_CATEGORY_ID, TEST_CLIENT_ID, TEST_LOCATION_ID, TEST_ORDER_ID, TEST_ORG_ID, TEST_ORG_TREE, TEST_PRODUCT_ID, TEST_ROLE_ID, TEST_US_ORG_ID, TEST_USER_ID, TEST_WAREHOUSE_ID, TEST2_USER_ID, userIds, watchFailures
Constructor and Description |
---|
ComputedColumnsTest() |
Modifier and Type | Method and Description |
---|---|
void |
testComputedColumnCriteriaFilter()
Tests computed columns can not be used in OBCriteria
|
void |
testComputedColumnHQLFilter()
Test it is possible to filter in HQL by computed columns accessing them through the proxy.
|
void |
testComputedColumnHQLFilterOldWay()
Direct access to computed columns in HQL was allowed prior to MP27, now it is not anymore and
proxy needs to be used.
|
void |
testJSONConverter()
Tests issue #25862
Computed columns for a new object should be null when converting to JSON
|
void |
testLazyLoad()
Tests computed columns are lazily loaded
|
addReadWriteAccess, commitTransaction, count, getConnectionProvider, getOneInstance, getRandomUser, getTestLogAppender, initializeDalLayer, isErrorOccured, reportException, rollback, setDalUp, setSystemAdministratorContext, setTestAdminContext, setTestLogAppenderLevel, setTestUserContext, setUp, setUserContext, testDone
public void testLazyLoad()
public void testComputedColumnHQLFilter()
Note this way of filtering is potentially harmful in terms of performance because computed column need to be calculated in order to do the filtering.
public void testComputedColumnCriteriaFilter()
public void testComputedColumnHQLFilterOldWay()
public void testJSONConverter() throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException