diff --git a/java/code/src/com/redhat/rhn/common/hibernate/AnnotationRegistry.java b/java/code/src/com/redhat/rhn/common/hibernate/AnnotationRegistry.java index c37aa54afd4..424af1e99ba 100644 --- a/java/code/src/com/redhat/rhn/common/hibernate/AnnotationRegistry.java +++ b/java/code/src/com/redhat/rhn/common/hibernate/AnnotationRegistry.java @@ -128,6 +128,10 @@ import com.redhat.rhn.domain.server.ansible.InventoryPath; import com.redhat.rhn.domain.server.ansible.PlaybookPath; import com.redhat.rhn.domain.server.virtualhostmanager.VirtualHostManagerNodeInfo; +import com.redhat.rhn.domain.state.OrgStateRevision; +import com.redhat.rhn.domain.state.ServerGroupStateRevision; +import com.redhat.rhn.domain.state.ServerStateRevision; +import com.redhat.rhn.domain.state.StateRevision; import com.redhat.rhn.domain.task.Task; import com.redhat.rhn.domain.token.Token; import com.redhat.rhn.domain.token.TokenChannelAppStream; @@ -225,6 +229,7 @@ private AnnotationRegistry() { OrgAdminManagement.class, Org.class, OrgConfig.class, + OrgStateRevision.class, OrgRecurringAction.class, PackageArch.class, PackageBreaks.class, @@ -276,13 +281,16 @@ private AnnotationRegistry() { ServerCoCoAttestationReport.class, ServerGroup.class, ServerGroupManager.class, + ServerGroupStateRevision.class, ServerGroupType.class, ServerPath.class, ServerPathId.class, + ServerStateRevision.class, SoftwareEnvironmentTarget.class, SoftwareProjectSource.class, SslCryptoKey.class, StateChange.class, + StateRevision.class, SUSEProductSCCRepository.class, Task.class, TemplateString.class, diff --git a/java/code/src/com/redhat/rhn/domain/state/StateRevision.java b/java/code/src/com/redhat/rhn/domain/state/StateRevision.java index 3c4eb5a744b..c6de036217c 100644 --- a/java/code/src/com/redhat/rhn/domain/state/StateRevision.java +++ b/java/code/src/com/redhat/rhn/domain/state/StateRevision.java @@ -27,12 +27,16 @@ import java.util.List; import java.util.Set; +import javax.persistence.Transient; + /** * A generic state revision to be subclassed for instance as {@link ServerStateRevision}. */ public class StateRevision { private long id; + @Transient + private Date created; private User creator; private Set packageStates = new HashSet<>(); private List configChannels = new ArrayList<>(); @@ -51,6 +55,20 @@ public void setId(long idIn) { this.id = idIn; } + /** + * @return the created + */ + public Date getCreated() { + return created; + } + + /** + * @param createdIn the created to set + */ + public void setCreated(Date createdIn) { + this.created = createdIn; + } + /** * @return the creator */