public void testResetOriginalValues() throws Exception { if (!PropsValues.HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE) { return; } DDMStructureLink newDDMStructureLink = addDDMStructureLink(); _persistence.clearCache(); DDMStructureLinkModelImpl existingDDMStructureLinkModelImpl = (DDMStructureLinkModelImpl) _persistence.findByPrimaryKey(newDDMStructureLink.getPrimaryKey()); assertEquals( existingDDMStructureLinkModelImpl.getClassPK(), existingDDMStructureLinkModelImpl.getOriginalClassPK()); }
@Override public void resetOriginalValues() { DDMStructureLinkModelImpl ddmStructureLinkModelImpl = this; ddmStructureLinkModelImpl._originalClassNameId = ddmStructureLinkModelImpl._classNameId; ddmStructureLinkModelImpl._setOriginalClassNameId = false; ddmStructureLinkModelImpl._originalClassPK = ddmStructureLinkModelImpl._classPK; ddmStructureLinkModelImpl._setOriginalClassPK = false; ddmStructureLinkModelImpl._originalStructureId = ddmStructureLinkModelImpl._structureId; ddmStructureLinkModelImpl._setOriginalStructureId = false; ddmStructureLinkModelImpl._columnBitmask = 0; }