@Override public void resetOriginalValues() { TeamModelImpl teamModelImpl = this; teamModelImpl._originalGroupId = teamModelImpl._groupId; teamModelImpl._setOriginalGroupId = false; teamModelImpl._originalName = teamModelImpl._name; teamModelImpl._columnBitmask = 0; }
@Test public void testResetOriginalValues() throws Exception { if (!PropsValues.HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE) { return; } Team newTeam = addTeam(); _persistence.clearCache(); TeamModelImpl existingTeamModelImpl = (TeamModelImpl) _persistence.findByPrimaryKey(newTeam.getPrimaryKey()); Assert.assertEquals( existingTeamModelImpl.getGroupId(), existingTeamModelImpl.getOriginalGroupId()); Assert.assertTrue( Validator.equals(existingTeamModelImpl.getName(), existingTeamModelImpl.getOriginalName())); }
@Override public void resetOriginalValues() { TeamModelImpl teamModelImpl = this; teamModelImpl._originalUuid = teamModelImpl._uuid; teamModelImpl._originalCompanyId = teamModelImpl._companyId; teamModelImpl._setOriginalCompanyId = false; teamModelImpl._setModifiedDate = false; teamModelImpl._originalGroupId = teamModelImpl._groupId; teamModelImpl._setOriginalGroupId = false; teamModelImpl._originalName = teamModelImpl._name; teamModelImpl._columnBitmask = 0; }